Uses of Class
org.apache.lucene.search.Sort
-
Packages that use Sort Package Description org.apache.lucene.benchmark.byTask.tasks Extendable benchmark tasks.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.org.apache.lucene.search.join This modules support index-time and query-time joins. -
-
Uses of Sort in org.apache.lucene.benchmark.byTask.tasks
Methods in org.apache.lucene.benchmark.byTask.tasks that return Sort Modifier and Type Method Description protected SortReadTask. getSort()SortSearchWithSortTask. getSort() -
Uses of Sort in org.apache.lucene.search
Fields in org.apache.lucene.search declared as Sort Modifier and Type Field Description static SortSort. INDEXORDERRepresents sorting by index order.static SortSort. RELEVANCERepresents sorting by computed relevance.Methods in org.apache.lucene.search with parameters of type Sort Modifier and Type Method Description static TopFieldCollectorTopFieldCollector. create(Sort sort, int numHits, boolean fillFields, boolean trackDocScores, boolean trackMaxScore, boolean docsScoredInOrder)Creates a newTopFieldCollectorfrom the given arguments.static TopDocsTopDocs. merge(Sort sort, int topN, TopDocs[] shardHits)Returns a new TopDocs, containing topN results across the provided TopDocs, sorting by the specifiedSort.TopFieldDocsCheckHits.ExplanationAssertingSearcher. search(Query query, Filter filter, int n, Sort sort)TopFieldDocsIndexSearcher. search(Query query, int n, Sort sort)Search implementation with arbitrary sorting and no filter.TopFieldDocsIndexSearcher. search(Query query, Filter filter, int n, Sort sort)Search implementation with arbitrary sorting.TopFieldDocsIndexSearcher. search(Weight weight, Filter filter, int nDocs, Sort sort)Expert: Low-level search implementation with arbitrary sorting.protected TopFieldDocsIndexSearcher. search(Weight weight, Filter filter, int nDocs, Sort sort, boolean fillFields)Just likeIndexSearcher.search(Weight, Filter, int, Sort), but you choose whether or not the fields in the returnedFieldDocinstances should be set by specifying fillFields.TopFieldDocsMultiSearcher. search(Weight weight, Filter filter, int n, Sort sort)Deprecated.TopFieldDocsParallelMultiSearcher. search(Weight weight, Filter filter, int nDocs, Sort sort)Deprecated.A search implementation allowing sorting which spans a new thread for each Searchable, waits for each search to complete and merges the results back together.TopFieldDocsRemoteSearchable. search(Weight weight, Filter filter, int n, Sort sort)Deprecated.TopFieldDocsSearchable. search(Weight weight, Filter filter, int n, Sort sort)Deprecated.Expert: Low-level search implementation with arbitrary sorting.TopFieldDocsSearcher. search(Query query, int n, Sort sort)Deprecated.Search implementation with arbitrary sorting and no filter.TopFieldDocsSearcher. search(Query query, Filter filter, int n, Sort sort)Deprecated.Search implementation with arbitrary sorting.abstract TopFieldDocsSearcher. search(Weight weight, Filter filter, int n, Sort sort)Deprecated. -
Uses of Sort in org.apache.lucene.search.grouping
Methods in org.apache.lucene.search.grouping with parameters of type Sort Modifier and Type Method Description static AbstractAllGroupHeadsCollectorTermAllGroupHeadsCollector. create(String groupField, Sort sortWithinGroup)Creates anAbstractAllGroupHeadsCollectorinstance based on the supplied arguments.static AbstractAllGroupHeadsCollectorTermAllGroupHeadsCollector. create(String groupField, Sort sortWithinGroup, int initialSize)Creates anAbstractAllGroupHeadsCollectorinstance based on the supplied arguments.TopGroupsBlockGroupingCollector. getTopGroups(Sort withinGroupSort, int groupOffset, int withinGroupOffset, int maxDocsPerGroup, boolean fillSortFields)Returns the grouped results.static <T> Collection<SearchGroup<T>>SearchGroup. merge(List<Collection<SearchGroup<T>>> topGroups, int offset, int topN, Sort groupSort)Merges multiple collections of top groups, for example obtained from separate index shards.static <T> TopGroups<T>TopGroups. merge(TopGroups<T>[] shardGroups, Sort groupSort, Sort docSort, int docOffset, int docTopN)Merges an array of TopGroups, for example obtained from the second-pass collector across multiple shards.Constructors in org.apache.lucene.search.grouping with parameters of type Sort Constructor Description AbstractFirstPassGroupingCollector(Sort groupSort, int topNGroups)Create the first pass collector.AbstractSecondPassGroupingCollector(Collection<SearchGroup<GROUP_VALUE_TYPE>> groups, Sort groupSort, Sort withinGroupSort, int maxDocsPerGroup, boolean getScores, boolean getMaxScores, boolean fillSortFields)BlockGroupingCollector(Sort groupSort, int topNGroups, boolean needsScores, Filter lastDocPerGroup)Create the single pass collector.TermFirstPassGroupingCollector(String groupField, Sort groupSort, int topNGroups)Create the first pass collector.TermSecondPassGroupingCollector(String groupField, Collection<SearchGroup<String>> groups, Sort groupSort, Sort withinGroupSort, int maxDocsPerGroup, boolean getScores, boolean getMaxScores, boolean fillSortFields) -
Uses of Sort in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join with parameters of type Sort Modifier and Type Method Description TopGroups<Integer>ToParentBlockJoinCollector. getTopGroups(ToParentBlockJoinQuery query, Sort withinGroupSort, int offset, int maxDocsPerGroup, int withinGroupOffset, boolean fillSortFields)Return the TopGroups for the specified BlockJoinQuery.Constructors in org.apache.lucene.search.join with parameters of type Sort Constructor Description ToParentBlockJoinCollector(Sort sort, int numParentHits, boolean trackScores, boolean trackMaxScore)
-