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

GitHub | saucam | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    geoSort should create GeoDistanceSortDefinition with empty geohashes

    GitHub | 4 months ago | saucam
    java.lang.IllegalArgumentException: Geo distance sorting needs at least one point.
  2. 0

    Migrating to 5.x get ClassCastException on StringTerms

    GitHub | 1 month ago | 123avi
    java.lang.ClassCastException: org.elasticsearch.search.aggregations.bucket.terms.UnmappedTerms cannot be cast to org.elasticsearch.search.aggregations.bucket.terms.StringTerms
  3. 0

    SortDefinition can not be created. Missing addSort Method

    GitHub | 2 months ago | alex-voigt
    java.lang.NoSuchMethodException: org.elasticsearch.search.builder.SearchSourceBuilder.addSort(org.elasticsearch.search.sort.SortBuilder)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 634#259500219

    GitHub | 6 months ago | sksamuel
    java.lang.NoClassDefFoundError: org/elasticsearch/transport/client/PreBuiltTransportClient
  6. 0

    GitHub comment 634#259499583

    GitHub | 6 months ago | carnalim
    java.lang.NoClassDefFoundError: org/elasticsearch/transport/client/PreBuiltTransportClient

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Geo distance sorting needs at least one point.

      at org.elasticsearch.search.sort.GeoDistanceSortBuilder.<init>()
    2. ElasticSearch
      SortBuilders.geoDistanceSort
      1. org.elasticsearch.search.sort.GeoDistanceSortBuilder.<init>(GeoDistanceSortBuilder.java:130)
      2. org.elasticsearch.search.sort.SortBuilders.geoDistanceSort(SortBuilders.java:88)
      2 frames
    3. com.sksamuel.elastic4s
      SortDsl$GeoSortExpectsPoints.points
      1. com.sksamuel.elastic4s.searches.sort.GeoDistanceSortDefinition.<init>(GeoDistanceSortDefinition.scala:13)
      2. com.sksamuel.elastic4s.searches.sort.SortDsl$GeoSortExpectsPoints.points(SortDsl.scala:27)
      2 frames