Uses of Class
org.apache.lucene.search.SortField
-
-
Uses of SortField in org.apache.lucene.document
Methods in org.apache.lucene.document that return SortField Modifier and Type Method Description static SortFieldLatLonDocValuesField. newDistanceSort(String field, double latitude, double longitude)Creates a SortField for sorting by distance from a location. -
Uses of SortField in org.apache.lucene.search
Subclasses of SortField in org.apache.lucene.search Modifier and Type Class Description classSortedNumericSortFieldSortField forSortedNumericDocValues.classSortedSetSortFieldSortField forSortedSetDocValues.Fields in org.apache.lucene.search declared as SortField Modifier and Type Field Description static SortFieldSortField. FIELD_DOCRepresents sorting by document number (index order).static SortFieldSortField. FIELD_SCORERepresents sorting by document score (relevance).protected SortField[]FieldValueHitQueue. fieldsStores the sort criteria being used.SortField[]TopFieldDocs. fieldsThe fields which were used to sort results by.Methods in org.apache.lucene.search that return SortField Modifier and Type Method Description SortField[]Sort. getSort()Representation of the sort criteria.SortFieldDoubleValuesSource. getSortField(boolean reverse)Create a sort field based on the value of this producerSortFieldLongValuesSource. getSortField(boolean reverse)Create a sort field based on the value of this producerSortFieldSortField. 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 SortField Modifier and Type Method Description static <T extends FieldValueHitQueue.Entry>
FieldValueHitQueue<T>FieldValueHitQueue. create(SortField[] fields, int size)Creates a hit queue sorted by the given list of fields.voidSort. setSort(SortField field)Sets the sort to the given criteria.voidSort. setSort(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.Constructors in org.apache.lucene.search with parameters of type SortField Constructor Description 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.TopFieldDocs(TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] fields)Creates one of these objects. -
Uses of SortField in org.apache.lucene.search.grouping
Constructors in org.apache.lucene.search.grouping with parameters of type SortField Constructor Description CollapseTopFieldDocs(String field, TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] sortFields, Object[] values) -
Uses of SortField in org.elasticsearch.common.lucene
Methods in org.elasticsearch.common.lucene that return SortField Modifier and Type Method Description static SortFieldLucene. readSortField(StreamInput in)Methods in org.elasticsearch.common.lucene with parameters of type SortField Modifier and Type Method Description static voidLucene. writeSortField(StreamOutput out, SortField sortField) -
Uses of SortField in org.elasticsearch.index
Methods in org.elasticsearch.index with parameters of type SortField Modifier and Type Method Description static SortField.TypeIndexSortConfig. getSortFieldType(SortField sortField) -
Uses of SortField in org.elasticsearch.index.fielddata
Methods in org.elasticsearch.index.fielddata that return SortField Modifier and Type Method Description SortFieldIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)Returns theSortFieldto use for sorting. -
Uses of SortField in org.elasticsearch.index.fielddata.ordinals
Methods in org.elasticsearch.index.fielddata.ordinals that return SortField Modifier and Type Method Description SortFieldGlobalOrdinalsIndexFieldData.Consumer. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)SortFieldGlobalOrdinalsIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) -
Uses of SortField in org.elasticsearch.index.fielddata.plain
Methods in org.elasticsearch.index.fielddata.plain that return SortField Modifier and Type Method Description SortFieldAbstractLatLonPointDVIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)SortFieldBinaryDVIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)SortFieldBytesBinaryDVIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)SortFieldConstantIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)SortFieldPagedBytesIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)SortFieldSortedNumericDVIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)SortFieldSortedNumericDVIndexFieldData. sortField(IndexNumericFieldData.NumericType targetNumericType, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)Returns theSortFieldto used for sorting.SortFieldSortedSetDVOrdinalsIndexFieldData. sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) -
Uses of SortField in org.elasticsearch.search
Methods in org.elasticsearch.search that return SortField Modifier and Type Method Description SortField[]SearchHits. getSortFields()In case documents were sorted by field(s), returns information about such field(s), null otherwiseConstructors in org.elasticsearch.search with parameters of type SortField Constructor Description SearchHits(SearchHit[] hits, TotalHits totalHits, float maxScore, SortField[] sortFields, String collapseField, Object[] collapseValues) -
Uses of SortField in org.elasticsearch.search.sort
Fields in org.elasticsearch.search.sort declared as SortField Modifier and Type Field Description SortFieldSortFieldAndFormat. fieldConstructors in org.elasticsearch.search.sort with parameters of type SortField Constructor Description SortFieldAndFormat(SortField field, DocValueFormat format)
-