Interface SearchSortBuilderFactory<C>
-
- Type Parameters:
C
- The type of query element collector
public interface SearchSortBuilderFactory<C>
A factory for search sort builders.This is the main entry point for the engine to ask the backend to build search sorts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompositeSortBuilder
composite()
void
contribute(C collector, SearchSort sort)
Contribute a sort builder to a collector.DistanceSortBuilder
distance(String absoluteFieldPath)
FieldSortBuilder
field(String absoluteFieldPath)
SearchSort
indexOrder()
ScoreSortBuilder
score()
-
-
-
Method Detail
-
contribute
void contribute(C collector, SearchSort sort)
Contribute a sort builder to a collector.May be called multiple times per collector, if there are multiple sorts.
- Parameters:
collector
- The query element collector.sort
- The sort builder implementation.
-
score
ScoreSortBuilder score()
-
field
FieldSortBuilder field(String absoluteFieldPath)
-
distance
DistanceSortBuilder distance(String absoluteFieldPath)
-
indexOrder
SearchSort indexOrder()
-
composite
CompositeSortBuilder composite()
-
-