Hi,I wanted to know how to get the exact matched documents as I am getting approximate value matching ,like I have written query:
{
"query": {
"nested": {
"path": "Trips",
"query": {
"bool": {
"must": [
{
"term": {
"Trips.Employees.Source_Geocode": "17.328375,78.587532"
}
},
{
"term": {
"Trips.Employees.Source_Geocode": "17.329349,78.595693"
}
}
]
}
}
}
}
}
but I am also getting value for 17.4523... like that.
is geocode a geo point? or a string? or a number array? What kind of field is this? Is it sufficient to just create a keyword field (which does not make much sense for any other kind of query like a range query). And what resembles an exact query/result set? If you had a couple of example documents (including mapping) this might be easier to follow and others are able to create a full reproduction.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.