Example usage for Java org.apache.lucene.search Sort fields, constructors, methods, implement or subclass
The text is from its open source code.
Sort | RELEVANCE Represents sorting by computed relevance. |
Sort | INDEXORDER Represents sorting by index order. |
Sort() Sorts by computed relevance. | |
Sort(SortField field) Sorts by the criteria in the given SortField. | |
Sort(SortField... fields) Sets the sort to the given criteria in succession: the first SortField is checked first, but if it produces a tie, then the second SortField is used to break the tie, etc. |
SortField[] | getSort() Representation of the sort criteria. |
boolean | needsScores() Returns true if the relevance score is needed to sort documents. |
Sort | rewrite(IndexSearcher searcher) Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting. |
void | setSort(SortField field) Sets the sort to the given criteria. |
void | setSort(SortField... fields) Sets the sort to the given criteria in succession: the first SortField is checked first, but if it produces a tie, then the second SortField is used to break the tie, etc. |
String | toString() |