Java org.apache.lucene.search Sort fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.search Sort fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.search Sort.

The text is from its open source code.

Subclass

org.apache.lucene.search.Sort has subclasses.
Click this link to see all its subclasses.

Field

SortRELEVANCE
Represents sorting by computed relevance.
SortINDEXORDER
Represents sorting by index order.

Constructor

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.

Method

SortField[]getSort()
Representation of the sort criteria.
booleanneedsScores()
Returns true if the relevance score is needed to sort documents.
Sortrewrite(IndexSearcher searcher)
Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting.
voidsetSort(SortField field)
Sets the sort to the given criteria.
voidsetSort(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.
StringtoString()