Uses of Class
org.apache.lucene.search.SortField
-
Packages that use SortField Package Description org.apache.lucene.search Code to search indices.org.apache.lucene.search.grouping This module enables search result grouping with Lucene, where hits with the same value in the specified single-valued group field are grouped together. -
-
Uses of SortField in org.apache.lucene.search
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.SortFieldSortField. setMissingValue(Object missingValue)Set a default sorting value for documents which lacks oneMethods 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.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)Sorts in succession by the criteria in each SortField.TopFieldDocs(int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore)Creates one of these objects. -
Uses of SortField in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as SortField Modifier and Type Field Description SortField[]TopGroups. groupSortHow groups are sorted against each otherSortField[]TopGroups. withinGroupSortHow docs are sorted within each groupConstructors in org.apache.lucene.search.grouping with parameters of type SortField Constructor Description TopGroups(SortField[] groupSort, SortField[] withinGroupSort, int totalHitCount, int totalGroupedHitCount, GroupDocs<GROUP_VALUE_TYPE>[] groups)
-