I changed my path to just segments and am still seeing the same issue when using Advanced REST client and the relevant mapping snippet is below. I did not create the mapping so I am not sure why the include_in_parent bit is used for segments when it is on the root level of the document. Any ideas why I am still seeing the problem?
Kevin
..........
"segments" : {
"type" : "nested",
"include_in_parent" : true,
"properties" : {
"anchor" : {
"type" : "nested",
"include_in_parent" : true,
"properties" : {
"section" : {
"type" : "string"
},
"start" : {
"type" : "long"
},
"stop" : {
"type" : "long"
},
"text" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"entities" : {
"type" : "nested",
"include_in_parent" : true,
"properties" : {
"anchorText" : {
"type" : "string",
"index" : "not_analyzed"
},
..........