I have an index and I am getting a geo_bounding_box with lat and long
from google maps. With out the extra filter the query works fine.
I am using elasticsearch head page to debug this. When I use this part
of the query
"query": {
"match_all": {},
"filter": {
"range": {
"inspection_score": {
"from": 30
}
}
}
}
It works fine. When I switch the order of match_all and filter the
query does not parse. Please see gist for the full query details. I am
using code to generate the json and it puts the filter in front of the
match all so it breaks.
I moved the range part in to the filter with the bounding_box as an
and statement.
I updated the bottom of the gist with my new working query. It is odd
to me still
that one query works well and the other errors.
I have an index and I am getting a geo_bounding_box with lat and long
from google maps. With out the extra filter the query works fine.
I am using elasticsearch head page to debug this. When I use this part
of the query
"query": {
"match_all": {},
"filter": {
"range": {
"inspection_score": {
"from": 30
}
}
}
}
It works fine. When I switch the order of match_all and filter the
query does not parse. Please see gist for the full query details. I am
using code to generate the json and it puts the filter in front of the
match all so it breaks.
I moved the range part in to the filter with the bounding_box as an
and statement.
I updated the bottom of the gist with my new working query. It is odd
to me still
that one query works well and the other errors.
I have an index and I am getting a geo_bounding_box with lat and long
from google maps. With out the extra filter the query works fine.
I am using elasticsearch head page to debug this. When I use this part
of the query
"query": {
"match_all": {},
"filter": {
"range": {
"inspection_score": {
"from": 30
}
}
}
}
It works fine. When I switch the order of match_all and filter the
query does not parse. Please see gist for the full query details. I am
using code to generate the json and it puts the filter in front of the
match all so it breaks.
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.