where "Location" is a geo-path constraint. The expected results are 4 documents. If we remove the geospatial-constraint-query and retain the term-query, the expected results are 222 documents.
Using the original "//" path: //geometry[type = "Point"]//array-node("coordinates"):
filtered: v1/search returns 4, but v1/values returns 222 (sum of frequencies)
unfiltered: both return 222
If we remove "//": /geometry[type = "Point"]/array-node("coordinates")
filtered: both return 4
unfiltered: both return 4
If we try using "//" only at the start: //geometry[type = "Point"]/array-node("coordinates"), we get the same results as that of the original paths.
Has anyone encountered this in other environments? Using ML 9.0-3 at the moment.
I've encountered an issue with unfiltered searches and how paths are defined for geospatial indexes.
Using the example content we use the following structured query:
where "Location" is a geo-path constraint. The expected results are 4 documents. If we remove the
geospatial-constraint-query
and retain theterm-query
, the expected results are 222 documents.Using the original "//" path:
//geometry[type = "Point"]//array-node("coordinates")
:If we remove "//":
/geometry[type = "Point"]/array-node("coordinates")
If we try using "//" only at the start:
//geometry[type = "Point"]/array-node("coordinates")
, we get the same results as that of the original paths.Has anyone encountered this in other environments? Using ML 9.0-3 at the moment.