Include_in_parent Question


(Kevin M.) #1

I inherited a project that has an Elasticsearch mapping like this, but the data is all stored in the same documents. That is, there are no actual parent/child mappings so is include_in_parent even useful in this case? If so, what does it buy me? Nested queries work as expected so I am inclined to just remove include_in_parent from the mapping but thought I would ask the question first. Any thoughts would be appreciated. Thanks.

Kevin

......
"disambigMismatches" : {
"type" : "nested",
"include_in_parent" : true,
"properties" : {
"completeMismatch" : {
"type" : "boolean"
},
"context" : {
"type" : "string"
},
"disambigId" : {
"type" : "long"
},
"disambigScore" : {
"type" : "double"
},
"mismatchText" : {
"type" : "string",
"index": "not_analyzed"
}
}
}......


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.