The Sort type exposes the following members.

Constructors

  NameDescription
Public methodSort()()()()
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 methodSort(String) Obsolete.
Sorts by the terms in
CopyC#
field
then by index order (document number). The type of value in
CopyC#
field
is determined automatically.
Public methodSort(array<String>[]()[][]) Obsolete.
Sorts in succession by the terms in each field. The type of value in
CopyC#
field
is determined automatically.
Public methodSort(SortField)
Sorts by the criteria in the given SortField.
Public methodSort(array<SortField>[]()[][])
Sorts in succession by the criteria in each SortField.
Public methodSort(String, Boolean) Obsolete.
Sorts possibly in reverse by the terms in
CopyC#
field
then by index order (document number). The type of value in
CopyC#
field
is determined automatically.

Methods

  NameDescription
Public methodEquals
Returns true if
CopyC#
o
is equal to this.
(Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns a hash code value for this object.
(Overrides Object..::..GetHashCode()()()().)
Public methodGetSort
Representation of the sort criteria.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetSort(String) Obsolete.
Sets the sort to the terms in
CopyC#
field
then by index order (document number).
Public methodSetSort(array<String>[]()[][]) Obsolete.
Sets the sort to the terms in each field in succession.
Public methodSetSort(SortField)
Sets the sort to the given criteria.
Public methodSetSort(array<SortField>[]()[][])
Sets the sort to the given criteria in succession.
Public methodSetSort(String, Boolean) Obsolete.
Sets the sort to the terms in
CopyC#
field
possibly in reverse, then by index order (document number).
Public methodToString (Overrides Object..::..ToString()()()().)

Fields

  NameDescription
Public fieldStatic memberINDEXORDER
Represents sorting by index order.
Public fieldStatic memberRELEVANCE
Represents sorting by computed relevance. Using this sort criteria returns the same results as calling {@link Searcher#Search(Query) Searcher#search()}without a sort criteria, only with slightly more overhead.

See Also