You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but it seems that the GeoDistanceRangeFilterParser depends on a to being available:
Caused by: java.lang.NullPointerException
at org.elasticsearch.common.unit.DistanceUnit.parse(DistanceUnit.java:93)
at org.elasticsearch.index.query.GeoDistanceRangeFilterParser.parse(GeoDistanceRangeFilterParser.java:224)
at org.elasticsearch.index.query.QueryParseContext.parseInnerFilter(QueryParseContext.java:224)
at org.elasticsearch.index.query.AndFilterParser.parse(AndFilterParser.java:63)
at org.elasticsearch.index.query.QueryParseContext.parseInnerFilter(QueryParseContext.java:224)
at org.elasticsearch.index.query.ConstantScoreQueryParser.parse(ConstantScoreQueryParser.java:66)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:192)
at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:89)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:192)
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:243)
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:223)
at org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:33)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:545)
The text was updated successfully, but these errors were encountered:
In 0.19.2, gt works fine, but it appears the the geo_distance_range requires an upper and lower limit. You can't specify just an upper or lower limit, eg: gt: '5km' or ''from: '5km'`
Just to note: I still think this is a bug, just a different bug from the one that you described :)
from is equivalent to gte (greater than or equal). to is equivalent lt (less than). You specify 'not within a range' which means that you should wrap your geo distance filter in a not filter
i was trying to use the
gt
options for the geo_distance_range filter like:but it seems that the
GeoDistanceRangeFilterParser
depends on ato
being available:The text was updated successfully, but these errors were encountered: