Uses of Class
org.apache.lucene.search.SortField
Package
Description
The logical representation of a
Document
for indexing and
searching.Code to maintain and access indices.
Code to search indices.
-
Uses of SortField in org.apache.lucene.document
Modifier and TypeMethodDescriptionstatic SortField
LatLonDocValuesField.newDistanceSort
(String field, double latitude, double longitude) Creates a SortField for sorting by distance from a location.static SortField
XYDocValuesField.newDistanceSort
(String field, float x, float y) Creates a SortField for sorting by distance from a location.static SortField
FeatureField.newFeatureSort
(String field, String featureName) Creates a SortField for sorting by the value of a feature. -
Uses of SortField in org.apache.lucene.index
Modifier and TypeMethodDescriptionabstract SortField
SortFieldProvider.readSortField
(DataInput in) Reads a SortField from serialized bytesModifier and TypeMethodDescriptionstatic void
SortFieldProvider.write
(SortField sf, DataOutput output) Writes a SortField to a DataOutputabstract void
SortFieldProvider.writeSortField
(SortField sf, DataOutput out) Writes a SortField to a DataOutput -
Uses of SortField in org.apache.lucene.search
Modifier and TypeClassDescriptionclass
SortField forSortedNumericDocValues
.class
SortField forSortedSetDocValues
.Modifier and TypeFieldDescriptionstatic final SortField
SortField.FIELD_DOC
Represents sorting by document number (index order).static final SortField
SortField.FIELD_SCORE
Represents sorting by document score (relevance).protected final SortField[]
FieldValueHitQueue.fields
Stores the sort criteria being used.TopFieldDocs.fields
The fields which were used to sort results by.Modifier and TypeMethodDescriptionSort.getSort()
Representation of the sort criteria.DoubleValuesSource.getSortField
(boolean reverse) Create a sort field based on the value of this producerLongValuesSource.getSortField
(boolean reverse) Create a sort field based on the value of this producerSortedNumericSortField.Provider.readSortField
(DataInput in) SortedSetSortField.Provider.readSortField
(DataInput in) SortField.Provider.readSortField
(DataInput in) SortField.rewrite
(IndexSearcher searcher) Rewrites this SortField, returning a new SortField if a change is made.Modifier and TypeMethodDescriptionstatic <T extends FieldValueHitQueue.Entry>
FieldValueHitQueue<T>Creates a hit queue sorted by the given list of fields.void
SortedNumericSortField.Provider.writeSortField
(SortField sf, DataOutput out) void
SortedSetSortField.Provider.writeSortField
(SortField sf, DataOutput out) void
SortField.Provider.writeSortField
(SortField sf, DataOutput out) ModifierConstructorDescriptionSets 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.TopFieldDocs
(TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] fields) Creates one of these objects.