Uses of Class
org.apache.lucene.search.Sort
-
Packages that use Sort Package Description org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.search Code to search indices. -
-
Uses of Sort in org.apache.lucene.index
Fields in org.apache.lucene.index declared as Sort Modifier and Type Field Description protected SortLiveIndexWriterConfig. indexSortThe sort order to use to write merged segments.Methods in org.apache.lucene.index that return Sort Modifier and Type Method Description SortLiveIndexWriterConfig. getIndexSort()Get the index-timeSortorder, applied to all (flushed and merged) segments.SortSegmentInfo. getIndexSort()Return the sort order of this segment, or null if the index has no sort.SortLeafMetaData. getSort()Return the order in which documents from this index are sorted, ornullif documents are in no particular order.Methods in org.apache.lucene.index with parameters of type Sort Modifier and Type Method Description IndexWriterConfigIndexWriterConfig. setIndexSort(Sort sort)Set theSortorder to use for all (flushed and merged) segments.static CheckIndex.Status.IndexSortStatusCheckIndex. testSort(CodecReader reader, Sort sort, PrintStream infoStream, boolean failFast)Tests index sort order.Constructors in org.apache.lucene.index with parameters of type Sort Constructor Description LeafMetaData(int createdVersionMajor, Version minVersion, Sort sort)Expert: Sole constructor.SegmentInfo(Directory dir, Version version, Version minVersion, String name, int maxDoc, boolean isCompoundFile, Codec codec, Map<String,String> diagnostics, byte[] id, Map<String,String> attributes, Sort indexSort)Construct a new complete SegmentInfo instance from input. -
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 that return Sort Modifier and Type Method Description SortSort. rewrite(IndexSearcher searcher)Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting.Methods in org.apache.lucene.search with parameters of type Sort Modifier and Type Method Description static TopFieldCollectorTopFieldCollector. create(Sort sort, int numHits, int totalHitsThreshold)Creates a newTopFieldCollectorfrom the given arguments.static TopFieldCollectorTopFieldCollector. create(Sort sort, int numHits, FieldDoc after, int totalHitsThreshold)Creates a newTopFieldCollectorfrom the given arguments.static CollectorManager<TopFieldCollector,TopFieldDocs>TopFieldCollector. createSharedManager(Sort sort, int numHits, FieldDoc after, int totalHitsThreshold)Create a CollectorManager which uses a shared hit counter to maintain number of hits and a sharedMaxScoreAccumulatorto propagate the minimum score accross segments if the primary sort is by relevancy.static TopFieldDocsTopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, boolean setShardIndex)Same asTopDocs.merge(Sort, int, TopFieldDocs[])but also ignores the topstarttop docs.static TopFieldDocsTopDocs. merge(Sort sort, int topN, TopFieldDocs[] shardHits)Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specifiedSort.TopFieldDocsIndexSearcher. search(Query query, int n, Sort sort)Search implementation with arbitrary sorting.TopFieldDocsIndexSearcher. search(Query query, int n, Sort sort, boolean doDocScores)Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed.TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int n, Sort sort)Finds the topnhits forquerywhere all results are after a previous result (after).TopFieldDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int numHits, Sort sort, boolean doDocScores)Finds the topnhits forquerywhere all results are after a previous result (after), allowing control over whether hit scores and max score should be computed.Constructors in org.apache.lucene.search with parameters of type Sort Constructor Description SortRescorer(Sort sort)Sole constructor.
-