Uses of Class
org.apache.lucene.search.SortField
Packages that use 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
Methods in org.apache.lucene.document that return SortFieldModifier and TypeMethodDescriptionstatic SortFieldLatLonDocValuesField.newDistanceSort(String field, double latitude, double longitude) Creates a SortField for sorting by distance from a location.static SortFieldXYDocValuesField.newDistanceSort(String field, float x, float y) Creates a SortField for sorting by distance from a location.static SortFieldFeatureField.newFeatureSort(String field, String featureName) Creates a SortField for sorting by the value of a feature.static SortFieldDoubleField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector) Create a newSortFieldfor double values.static SortFieldDoubleField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector, double missingValue) Create a newSortFieldfor double values.static SortFieldFloatField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector) Create a newSortFieldfor float values.static SortFieldFloatField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector, float missingValue) Create a newSortFieldfor float values.static SortFieldIntField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector) Create a newSortFieldfor int values.static SortFieldIntField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector, int missingValue) Create a newSortFieldfor int values.static SortFieldKeywordField.newSortField(String field, boolean reverse, SortedSetSelector.Type selector) static SortFieldKeywordField.newSortField(String field, boolean reverse, SortedSetSelector.Type selector, Object missingValue) static SortFieldLongField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector) Create a newSortFieldfor long values.static SortFieldLongField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector, long missingValue) Create a newSortFieldfor long values. -
Uses of SortField in org.apache.lucene.index
Methods in org.apache.lucene.index that return SortFieldModifier and TypeMethodDescriptionabstract SortFieldSortFieldProvider.readSortField(DataInput in) Reads a SortField from serialized bytesMethods in org.apache.lucene.index with parameters of type SortFieldModifier and TypeMethodDescriptionstatic voidSortFieldProvider.write(SortField sf, DataOutput output) Writes a SortField to a DataOutputabstract voidSortFieldProvider.writeSortField(SortField sf, DataOutput out) Writes a SortField to a DataOutput -
Uses of SortField in org.apache.lucene.search
Subclasses of SortField in org.apache.lucene.searchModifier and TypeClassDescriptionclassSortField forBinaryDocValues, usable as an index sort.classSortField forSortedNumericDocValues.classSortField forSortedSetDocValues.Fields in org.apache.lucene.search declared as SortFieldModifier and TypeFieldDescriptionstatic final SortFieldSortField.FIELD_DOCRepresents sorting by document number (index order).static final SortFieldSortField.FIELD_SCORERepresents sorting by document score (relevance).protected final SortField[]FieldValueHitQueue.fieldsStores the sort criteria being used.TopFieldDocs.fieldsThe fields which were used to sort results by.Methods in org.apache.lucene.search that return SortFieldModifier and TypeMethodDescriptionstatic SortFieldSort.getPrimarySortField(LeafReader reader) Returns the primary index sort field for the given LeafReader, or null if none is configured.Sort.getSort()Representation of the sort criteria.DoubleValuesSource.getSortField(boolean reverse) Create a sort field based on the value of this producerDoubleValuesSource.getSortField(boolean reverse, double missingValue) Create a sort field based on the value of this producerLongValuesSource.getSortField(boolean reverse) Create a sort field based on the value of this producerLongValuesSource.getSortField(boolean reverse, long missingValue) Create a sort field based on the value of this producerBinarySortField.Provider.readSortField(DataInput in) SortedNumericSortField.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.Methods in org.apache.lucene.search with parameters of type SortFieldModifier and TypeMethodDescriptionstatic <T extends FieldValueHitQueue.Entry>
FieldValueHitQueue<T> Creates a hit queue sorted by the given list of fields.voidBinarySortField.Provider.writeSortField(SortField sf, DataOutput out) voidSortedNumericSortField.Provider.writeSortField(SortField sf, DataOutput out) voidSortedSetSortField.Provider.writeSortField(SortField sf, DataOutput out) voidSortField.Provider.writeSortField(SortField sf, DataOutput out) Constructors in org.apache.lucene.search with parameters of type SortFieldModifierConstructorDescriptionSets 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.