Class SearchSort

    • Field Detail

      • descending

        protected boolean descending
    • Constructor Detail

      • SearchSort

        protected SearchSort()
    • Method Detail

      • desc

        public SearchSort desc​(boolean descending)
      • byId

        public static SearchSortId byId()
        Sort by the document identifier.
      • byField

        public static SearchSortField byField​(String field)
        Sort by a field in the rows.
        Parameters:
        field - the field name.
      • byGeoDistance

        public static SearchSortGeoDistance byGeoDistance​(double locationLon,
                                                          double locationLat,
                                                          String field)
        Sort by distance from a geographic location.
        Parameters:
        locationLon - longitude of the location.
        locationLat - latitude of the location.
        field - the field name.