Package | Description |
---|---|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
org.apache.lucene.facet |
Faceted search.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
Modifier and Type | Method and Description |
---|---|
protected Sort |
ReadTask.getSort() |
Sort |
SearchWithSortTask.getSort() |
Modifier and Type | Method and Description |
---|---|
DrillSideways.DrillSidewaysResult |
DrillSideways.search(DrillDownQuery query,
Query filter,
FieldDoc after,
int topN,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
Search, sorting by
Sort , and computing
drill down and sideways counts. |
static TopFieldDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopFieldDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
Modifier and Type | Field and Description |
---|---|
protected Sort |
LiveIndexWriterConfig.indexSort
The sort order to use to write merged segments.
|
Modifier and Type | Method and Description |
---|---|
Sort |
SegmentInfo.getIndexSort()
Return the sort order of this segment, or null if the index has no sort.
|
Sort |
LiveIndexWriterConfig.getIndexSort()
Get the index-time
Sort order, applied to all (flushed and merged) segments. |
Sort |
LeafMetaData.getSort()
Return the order in which documents from this index are sorted, or
null if documents are in no particular order. |
Modifier and Type | Method and Description |
---|---|
IndexWriterConfig |
IndexWriterConfig.setIndexSort(Sort sort)
Set the
Sort order to use for all (flushed and merged) segments. |
static CheckIndex.Status.IndexSortStatus |
CheckIndex.testSort(CodecReader reader,
Sort sort,
java.io.PrintStream infoStream,
boolean failFast)
Tests index sort order.
|
Constructor and Description |
---|
LeafMetaData(int createdVersionMajor,
Version minVersion,
Sort sort)
Expert: Sole constructor.
|
SegmentInfo(Directory dir,
Version version,
Version minVersion,
java.lang.String name,
int maxDoc,
boolean isCompoundFile,
Codec codec,
java.util.Map<java.lang.String,java.lang.String> diagnostics,
byte[] id,
java.util.Map<java.lang.String,java.lang.String> attributes,
Sort indexSort)
Construct a new complete SegmentInfo instance from input.
|
Modifier and Type | Field and Description |
---|---|
static Sort |
Sort.INDEXORDER
Represents sorting by index order.
|
static Sort |
Sort.RELEVANCE
Represents sorting by computed relevance.
|
protected Sort |
EarlyTerminatingSortingCollector.sort
Deprecated.
Sort used to sort the search results
|
Modifier and Type | Method and Description |
---|---|
Sort |
Sort.rewrite(IndexSearcher searcher)
Rewrites the SortFields in this Sort, returning a new Sort if any of the fields
changes during their rewriting.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
EarlyTerminatingSortingCollector.canEarlyTerminate(Sort searchSort,
Sort mergePolicySort)
Deprecated.
|
static TopFieldCollector |
TopFieldCollector.create(Sort sort,
int numHits,
boolean fillFields,
boolean trackDocScores,
boolean trackMaxScore)
|
static TopFieldCollector |
TopFieldCollector.create(Sort sort,
int numHits,
boolean fillFields,
boolean trackDocScores,
boolean trackMaxScore,
boolean trackTotalHits)
Creates a new
TopFieldCollector from the given
arguments. |
static TopFieldCollector |
TopFieldCollector.create(Sort sort,
int numHits,
FieldDoc after,
boolean fillFields,
boolean trackDocScores,
boolean trackMaxScore)
|
static TopFieldCollector |
TopFieldCollector.create(Sort sort,
int numHits,
FieldDoc after,
boolean fillFields,
boolean trackDocScores,
boolean trackMaxScore,
boolean trackTotalHits)
Creates a new
TopFieldCollector from the given
arguments. |
TopFieldDocs |
ShardSearchingTestBase.NodeState.ShardIndexSearcher.localSearch(Query query,
int numHits,
Sort sort) |
static TopFieldDocs |
TopDocs.merge(Sort sort,
int start,
int topN,
TopFieldDocs[] shardHits,
boolean setShardIndex)
Same as
TopDocs.merge(Sort, int, TopFieldDocs[]) but also ignores the top
start top docs. |
static TopFieldDocs |
TopDocs.merge(Sort sort,
int topN,
TopFieldDocs[] shardHits)
Returns a new TopFieldDocs, containing topN results across
the provided TopFieldDocs, sorting by the specified
Sort . |
TopFieldDocs |
CheckHits.ExplanationAssertingSearcher.search(Query query,
int n,
Sort sort) |
TopFieldDocs |
ShardSearchingTestBase.NodeState.ShardIndexSearcher.search(Query query,
int numHits,
Sort sort) |
TopFieldDocs |
IndexSearcher.search(Query query,
int n,
Sort sort)
Search implementation with arbitrary sorting.
|
TopFieldDocs |
IndexSearcher.search(Query query,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
Search implementation with arbitrary sorting, plus
control over whether hit scores and max score
should be computed.
|
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
int n,
Sort sort)
Finds the top
n
hits for query where all results are after a previous
result (after ). |
TopFieldDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
int numHits,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
Finds the top
n
hits for query where all results are after a previous
result (after ), allowing control over
whether hit scores and max score should be computed. |
Constructor and Description |
---|
EarlyTerminatingSortingCollector(Collector in,
Sort sort,
int numDocsToCollect)
Deprecated.
Create a new
EarlyTerminatingSortingCollector instance. |
SortRescorer(Sort sort)
Sole constructor.
|
Modifier and Type | Field and Description |
---|---|
protected Sort |
AllGroupHeadsCollector.sort |
Modifier and Type | Method and Description |
---|---|
TopGroups<?> |
BlockGroupingCollector.getTopGroups(Sort withinGroupSort,
int groupOffset,
int withinGroupOffset,
int maxDocsPerGroup,
boolean fillSortFields)
Returns the grouped results.
|
static <T> java.util.Collection<SearchGroup<T>> |
SearchGroup.merge(java.util.List<java.util.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,
TopGroups.ScoreMergeMode scoreMergeMode)
Merges an array of TopGroups, for example obtained
from the second-pass collector across multiple
shards.
|
static <T> AllGroupHeadsCollector<T> |
AllGroupHeadsCollector.newCollector(GroupSelector<T> selector,
Sort sort)
Create a new AllGroupHeadsCollector based on the type of within-group Sort required
|
GroupingSearch |
GroupingSearch.setGroupSort(Sort groupSort)
Specifies how groups are sorted.
|
GroupingSearch |
GroupingSearch.setSortWithinGroup(Sort sortWithinGroup)
Specified how documents inside a group are sorted.
|
Constructor and Description |
---|
BlockGroupingCollector(Sort groupSort,
int topNGroups,
boolean needsScores,
Weight lastDocPerGroup)
Create the single pass collector.
|
FirstPassGroupingCollector(GroupSelector<T> groupSelector,
Sort groupSort,
int topNGroups)
Create the first pass collector.
|
TopGroupsCollector(GroupSelector<T> groupSelector,
java.util.Collection<SearchGroup<T>> groups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields)
Create a new TopGroupsCollector
|
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.