Package org.apache.lucene.tests.search
Class ShardSearchingTestBase.NodeState.ShardIndexSearcher
- java.lang.Object
-
- org.apache.lucene.search.IndexSearcher
-
- org.apache.lucene.tests.search.ShardSearchingTestBase.NodeState.ShardIndexSearcher
-
- Enclosing class:
- ShardSearchingTestBase.NodeState
public class ShardSearchingTestBase.NodeState.ShardIndexSearcher extends IndexSearcher
Matches docs in the local shard but scores based on aggregated stats ("mock distributed scoring") from all nodes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.IndexSearcher
IndexSearcher.LeafSlice, IndexSearcher.TooManyClauses, IndexSearcher.TooManyNestedClauses
-
-
Field Summary
Fields Modifier and Type Field Description intmyNodeIDlong[]nodeVersions-
Fields inherited from class org.apache.lucene.search.IndexSearcher
leafContexts, readerContext
-
-
Constructor Summary
Constructors Constructor Description ShardIndexSearcher(long[] nodeVersions, IndexReader localReader, int nodeID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionStatisticscollectionStatistics(String field)TopDocslocalSearch(Query query, int numHits)TopFieldDocslocalSearch(Query query, int numHits, Sort sort)TopDocslocalSearchAfter(ScoreDoc after, Query query, int numHits)Queryrewrite(Query original)TopDocssearch(Query query, int numHits)TopFieldDocssearch(Query query, int numHits, Sort sort)TopDocssearchAfter(ScoreDoc after, Query query, int numHits)TermStatisticstermStatistics(Term term, int docFreq, long totalTermFreq)-
Methods inherited from class org.apache.lucene.search.IndexSearcher
count, createWeight, doc, doc, doc, explain, explain, getDefaultQueryCache, getDefaultQueryCachingPolicy, getDefaultSimilarity, getExecutor, getIndexReader, getLeafContexts, getMaxClauseCount, getQueryCache, getQueryCachingPolicy, getSimilarity, getSlices, getTaskExecutor, getTimeout, getTopReaderContext, search, search, search, search, searchAfter, searchAfter, searchLeaf, setDefaultQueryCache, setDefaultQueryCachingPolicy, setMaxClauseCount, setQueryCache, setQueryCachingPolicy, setSimilarity, setTimeout, slices, slices, storedFields, timedOut, toString
-
-
-
-
Constructor Detail
-
ShardIndexSearcher
public ShardIndexSearcher(long[] nodeVersions, IndexReader localReader, int nodeID)
-
-
Method Detail
-
rewrite
public Query rewrite(Query original) throws IOException
- Overrides:
rewritein classIndexSearcher- Throws:
IOException
-
termStatistics
public TermStatistics termStatistics(Term term, int docFreq, long totalTermFreq) throws IOException
- Overrides:
termStatisticsin classIndexSearcher- Throws:
IOException
-
collectionStatistics
public CollectionStatistics collectionStatistics(String field) throws IOException
- Overrides:
collectionStatisticsin classIndexSearcher- Throws:
IOException
-
search
public TopDocs search(Query query, int numHits) throws IOException
- Overrides:
searchin classIndexSearcher- Throws:
IOException
-
localSearch
public TopDocs localSearch(Query query, int numHits) throws IOException
- Throws:
IOException
-
searchAfter
public TopDocs searchAfter(ScoreDoc after, Query query, int numHits) throws IOException
- Overrides:
searchAfterin classIndexSearcher- Throws:
IOException
-
localSearchAfter
public TopDocs localSearchAfter(ScoreDoc after, Query query, int numHits) throws IOException
- Throws:
IOException
-
search
public TopFieldDocs search(Query query, int numHits, Sort sort) throws IOException
- Overrides:
searchin classIndexSearcher- Throws:
IOException
-
localSearch
public TopFieldDocs localSearch(Query query, int numHits, Sort sort) throws IOException
- Throws:
IOException
-
-