PDF - The type of factory used to create predicates in SortFilterStep.filter(Function).public interface ExtendedSearchSortFactory<PDF extends SearchPredicateFactory> extends SearchSortFactory
SearchSortFactory allowing to
easily override the predicate factory type for all relevant methods.
Warning: Generic parameters of this type are subject to change, so this type should not be referenced directtly in user code.
| Modifier and Type | Method and Description |
|---|---|
default DistanceSortOptionsStep<?,PDF> |
distance(String absoluteFieldPath,
double latitude,
double longitude)
Order elements by the distance from the location stored in the specified field to the location specified.
|
DistanceSortOptionsStep<?,PDF> |
distance(String absoluteFieldPath,
GeoPoint location)
Order elements by the distance from the location stored in the specified field to the location specified.
|
FieldSortOptionsStep<?,PDF> |
field(String absoluteFieldPath)
Order elements by the value of a specific field.
|
composite, composite, extension, extension, indexOrder, scoreFieldSortOptionsStep<?,PDF> field(String absoluteFieldPath)
SearchSortFactoryThe default order is ascending.
field in interface SearchSortFactoryabsoluteFieldPath - The absolute path of the index field to sort byDistanceSortOptionsStep<?,PDF> distance(String absoluteFieldPath, GeoPoint location)
SearchSortFactoryThe default order is ascending.
distance in interface SearchSortFactoryabsoluteFieldPath - The absolute path of the indexed location field to sort by.location - The location to which we want to compute the distance.default DistanceSortOptionsStep<?,PDF> distance(String absoluteFieldPath, double latitude, double longitude)
SearchSortFactoryThe default order is ascending.
distance in interface SearchSortFactoryabsoluteFieldPath - The absolute path of the indexed location field to sort by.latitude - The latitude of the location to which we want to compute the distance.longitude - The longitude of the location to which we want to compute the distance.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.