public class ContextIndexSearcher extends org.apache.lucene.search.IndexSearcher implements Releasable
IndexSearcher
.Constructor and Description |
---|
ContextIndexSearcher(Engine.Searcher searcher,
org.apache.lucene.search.QueryCache queryCache,
org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.lucene.search.CollectionStatistics |
collectionStatistics(java.lang.String field) |
org.apache.lucene.search.Weight |
createNormalizedWeight(org.apache.lucene.search.Query query,
boolean needsScores) |
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.Query query,
boolean needsScores) |
org.apache.lucene.search.Explanation |
explain(org.apache.lucene.search.Query query,
int doc) |
org.apache.lucene.index.DirectoryReader |
getDirectoryReader() |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.search.Query original) |
protected void |
search(java.util.List<org.apache.lucene.index.LeafReaderContext> leaves,
org.apache.lucene.search.Weight weight,
org.apache.lucene.search.Collector collector) |
void |
setAggregatedDfs(AggregatedDfs aggregatedDfs) |
void |
setCheckCancelled(java.lang.Runnable checkCancelled)
Set a
Runnable that will be run on a regular basis while
collecting documents. |
void |
setProfiler(QueryProfiler profiler) |
org.apache.lucene.search.TermStatistics |
termStatistics(org.apache.lucene.index.Term term,
org.apache.lucene.index.TermContext context) |
count, doc, doc, doc, explain, getDefaultQueryCache, getDefaultQueryCachingPolicy, getDefaultSimilarity, getIndexReader, getQueryCache, getQueryCachingPolicy, getSimilarity, getTopReaderContext, search, search, search, search, search, searchAfter, searchAfter, searchAfter, setDefaultQueryCache, setDefaultQueryCachingPolicy, setQueryCache, setQueryCachingPolicy, setSimilarity, slices, toString
public ContextIndexSearcher(Engine.Searcher searcher, org.apache.lucene.search.QueryCache queryCache, org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface Releasable
public void setProfiler(QueryProfiler profiler)
public void setCheckCancelled(java.lang.Runnable checkCancelled)
Runnable
that will be run on a regular basis while
collecting documents.public void setAggregatedDfs(AggregatedDfs aggregatedDfs)
public org.apache.lucene.search.Query rewrite(org.apache.lucene.search.Query original) throws java.io.IOException
rewrite
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public org.apache.lucene.search.Weight createNormalizedWeight(org.apache.lucene.search.Query query, boolean needsScores) throws java.io.IOException
createNormalizedWeight
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Query query, boolean needsScores) throws java.io.IOException
createWeight
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
protected void search(java.util.List<org.apache.lucene.index.LeafReaderContext> leaves, org.apache.lucene.search.Weight weight, org.apache.lucene.search.Collector collector) throws java.io.IOException
search
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Query query, int doc) throws java.io.IOException
explain
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public org.apache.lucene.search.TermStatistics termStatistics(org.apache.lucene.index.Term term, org.apache.lucene.index.TermContext context) throws java.io.IOException
termStatistics
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public org.apache.lucene.search.CollectionStatistics collectionStatistics(java.lang.String field) throws java.io.IOException
collectionStatistics
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public org.apache.lucene.index.DirectoryReader getDirectoryReader()