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
By mistake, I clicked on the sort button on a geo_point column.
Which leads me to this error:
Segmented Fetch: SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[ac-m7BnNQeSQSbe8OGl-vA][person][0]: SearchParseException[[person][0]: from[-1],size[500]: Parse Failure [Failed to parse source [{"size":500,"sort":{"address.location":"desc"},"aggs":{"agg_25":{"date_histogram":{"field":"dateOfBirth","interval":"31536000000ms","min_doc_count":0,"extended_bounds":{"min":"1939-12-31T23:00:00.000Z","max":"2010-12-31T23:00:00.000Z"}}}},"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"dateOfBirth":{"gte":-946774800000,"lte":1293836400000}}}],"must_not":[]}}}}}]]]; nested: ElasticsearchIllegalArgumentException[can't sort on geo_point field without using specific sorting feature, like geo_distance]; }{[ac-m7BnNQeSQSbe8OGl-vA][person][1]: SearchParseException[[person][1]: from[-1],size[500]: Parse Failure [Failed to parse source [{"size":500,"sort":{"address.location":"desc"},"aggs":{"agg_25":{"date_histogram":{"field":"dateOfBirth","interval":"31536000000ms","min_doc_count":0,"extended_bounds":{"min":"1939-12-31T23:00:00.000Z","max":"2010-12-31T23:00:00.000Z"}}}},"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"dateOfBirth":{"gte":-946774800000,"lte":1293836400000}}}],"must_not":[]}}}}}]]]; nested: ElasticsearchIllegalArgumentException[can't sort on geo_point field without using specific sorting feature, like geo_distance]; }{[ac-m7BnNQeSQSbe8OGl-vA][person][2]: SearchParseException[[person][2]: from[-1],size[500]: Parse Failure [Failed to parse source [{"size":500,"sort":{"address.location":"desc"},"aggs":{"agg_25":{"date_histogram":{"field":"dateOfBirth","interval":"31536000000ms","min_doc_count":0,"extended_bounds":{"min":"1939-12-31T23:00:00.000Z","max":"2010-12-31T23:00:00.000Z"}}}},"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"dateOfBirth":{"gte":-946774800000,"lte":1293836400000}}}],"must_not":[]}}}}}]]]; nested: ElasticsearchIllegalArgumentException[can't sort on geo_point field without using specific sorting feature, like geo_distance]; }{[ac-m7BnNQeSQSbe8OGl-vA][person][3]: SearchParseException[[person][3]: from[-1],size[500]: Parse Failure [Failed to parse source [{"size":500,"sort":{"address.location":"desc"},"aggs":{"agg_25":{"date_histogram":{"field":"dateOfBirth","interval":"31536000000ms","min_doc_count":0,"extended_bounds":{"min":"1939-12-31T23:00:00.000Z","max":"2010-12-31T23:00:00.000Z"}}}},"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"dateOfBirth":{"gte":-946774800000,"lte":1293836400000}}}],"must_not":[]}}}}}]]]; nested: ElasticsearchIllegalArgumentException[can't sort on geo_point field without using specific sorting feature, like geo_distance]; }{[ac-m7BnNQeSQSbe8OGl-vA][person][4]: SearchParseException[[person][4]: from[-1],size[500]: Parse Failure [Failed to parse source [{"size":500,"sort":{"address.location":"desc"},"aggs":{"agg_25":{"date_histogram":{"field":"dateOfBirth","interval":"31536000000ms","min_doc_count":0,"extended_bounds":{"min":"1939-12-31T23:00:00.000Z","max":"2010-12-31T23:00:00.000Z"}}}},"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"dateOfBirth":{"gte":-946774800000,"lte":1293836400000}}}],"must_not":[]}}}}}]]]; nested: ElasticsearchIllegalArgumentException[can't sort on geo_point field without using specific sorting feature, like geo_distance]; }]
I think we should not allow sorting on such a column.
The text was updated successfully, but these errors were encountered:
I did not test it but I guess this could be applied to most of the "not known as sortable type" such as geo_shape, attachment and whatever type that could be provided as a plugin in elasticsearch.
So may be we should change the title for this issue and adapt the PR?
By mistake, I clicked on the sort button on a geo_point column.
Which leads me to this error:
I think we should not allow sorting on such a column.
The text was updated successfully, but these errors were encountered: