Apache Lucene.Net 2.4.0 Class Library API

Sort Constructor

Sorts by computed relevance. This is the same sort criteria as calling {@link Searcher#Search(Query) Searcher#search()}without a sort criteria, only with slightly more overhead.

Overload List

Sorts by computed relevance. This is the same sort criteria as calling {@link Searcher#Search(Query) Searcher#search()}without a sort criteria, only with slightly more overhead.

public Sort();

Sorts by the criteria in the given SortField.

public Sort(SortField);

Sorts in succession by the criteria in each SortField.

public Sort(SortField[]);

Sorts by the terms in

field
then by index order (document number). The type of value in
field
is determined automatically.

public Sort(string);

Sorts possibly in reverse by the terms in

field
then by index order (document number). The type of value in
field
is determined automatically.

public Sort(string,bool);

Sorts in succession by the terms in each field. The type of value in

field
is determined automatically.

public Sort(string[]);

See Also

Sort Class | Lucene.Net.Search Namespace