java.lang.IllegalArgumentException: Geo distance sorting needs at least one point.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by saucam
, 11 months ago
Geo distance sorting needs at least one point.
java.lang.IllegalArgumentException: Geo distance sorting needs at least one point.
at org.elasticsearch.search.sort.GeoDistanceSortBuilder.(GeoDistanceSortBuilder.java:130)
at com.sksamuel.elastic4s.searches.sort.GeoDistanceSortDefinition.(GeoDistanceSortDefinition.scala:13)
at com.sksamuel.elastic4s.searches.sort.SortDsl$GeoSortExpectsPoints.points(SortDsl.scala:27)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.