我在elasticSearch中定义了以下文档类型:
"token":{
"properties":{
"beginning":{"type": "string", "index":"not_analyzed", "doc_values":"true"},
"end":{"type": "string", "index":"not_analyzed", "doc_values":"true"},
"semantic_category":{"type": "string", "index":"not_analyzed", "doc_values":"true"},
}
}
"file":{
"properties":{
"abstract":{"type": "string", "index":"not_analyzed", "doc_values":"true"},
"title":{"type": "string", "index":"not_analyzed", "doc_values":"true"},
}
}
我想在“文件”文档中有两个嵌套的Token对象,一个是title_tokens,另一个是abstract_tokens。然而,我找到的唯一方法是定义两种不同的嵌套类型。
有没有办法在文档中包含文档类型作为对象?