public class UnmanagedIndexSearcher extends org.apache.lucene.search.IndexSearcher implements Closeable
Constructor and Description |
---|
UnmanagedIndexSearcher(com.atlassian.jira.index.DelayCloseSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.lucene.search.CollectionStatistics |
collectionStatistics(String field) |
int |
count(org.apache.lucene.search.Query query) |
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,
float boost) |
org.apache.lucene.document.Document |
doc(int i) |
org.apache.lucene.document.Document |
doc(int n,
Set<String> fieldsToLoad) |
void |
doc(int n,
org.apache.lucene.index.StoredFieldVisitor fieldVisitor) |
boolean |
equals(Object obj) |
org.apache.lucene.search.Explanation |
explain(org.apache.lucene.search.Query query,
int doc) |
protected org.apache.lucene.search.Explanation |
explain(org.apache.lucene.search.Weight weight,
int doc) |
org.apache.lucene.search.IndexSearcher |
get()
Produce an object.
|
org.apache.lucene.index.IndexReader |
getIndexReader() |
org.apache.lucene.search.QueryCache |
getQueryCache() |
org.apache.lucene.search.QueryCachingPolicy |
getQueryCachingPolicy() |
org.apache.lucene.search.similarities.Similarity |
getSimilarity(boolean needsScores) |
org.apache.lucene.index.IndexReaderContext |
getTopReaderContext() |
int |
hashCode() |
boolean |
isClosed() |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.search.Query query) |
protected void |
search(List<org.apache.lucene.index.LeafReaderContext> leaves,
org.apache.lucene.search.Weight weight,
org.apache.lucene.search.Collector collector) |
void |
search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Collector results) |
<C extends org.apache.lucene.search.Collector,T> |
search(org.apache.lucene.search.Query query,
org.apache.lucene.search.CollectorManager<C,T> collectorManager) |
org.apache.lucene.search.TopDocs |
search(org.apache.lucene.search.Query query,
int n) |
org.apache.lucene.search.TopFieldDocs |
search(org.apache.lucene.search.Query query,
int n,
org.apache.lucene.search.Sort sort) |
org.apache.lucene.search.TopFieldDocs |
search(org.apache.lucene.search.Query query,
int n,
org.apache.lucene.search.Sort sort,
boolean doDocScores,
boolean doMaxScore) |
org.apache.lucene.search.TopDocs |
searchAfter(org.apache.lucene.search.ScoreDoc after,
org.apache.lucene.search.Query query,
int numHits) |
org.apache.lucene.search.TopDocs |
searchAfter(org.apache.lucene.search.ScoreDoc after,
org.apache.lucene.search.Query query,
int n,
org.apache.lucene.search.Sort sort) |
org.apache.lucene.search.TopFieldDocs |
searchAfter(org.apache.lucene.search.ScoreDoc after,
org.apache.lucene.search.Query query,
int numHits,
org.apache.lucene.search.Sort sort,
boolean doDocScores,
boolean doMaxScore) |
void |
setQueryCache(org.apache.lucene.search.QueryCache queryCache) |
void |
setQueryCachingPolicy(org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy) |
void |
setSimilarity(org.apache.lucene.search.similarities.Similarity similarity) |
protected org.apache.lucene.search.IndexSearcher.LeafSlice[] |
slices(List<org.apache.lucene.index.LeafReaderContext> leaves) |
org.apache.lucene.search.TermStatistics |
termStatistics(org.apache.lucene.index.Term term,
org.apache.lucene.index.TermContext context) |
String |
toString() |
public UnmanagedIndexSearcher(com.atlassian.jira.index.DelayCloseSearcher searcher)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public boolean isClosed()
public org.apache.lucene.search.IndexSearcher get()
Supplier
public org.apache.lucene.index.IndexReader getIndexReader()
getIndexReader
in class org.apache.lucene.search.IndexSearcher
public void setQueryCache(org.apache.lucene.search.QueryCache queryCache)
setQueryCache
in class org.apache.lucene.search.IndexSearcher
public org.apache.lucene.search.QueryCache getQueryCache()
getQueryCache
in class org.apache.lucene.search.IndexSearcher
public void setQueryCachingPolicy(org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy)
setQueryCachingPolicy
in class org.apache.lucene.search.IndexSearcher
public org.apache.lucene.search.QueryCachingPolicy getQueryCachingPolicy()
getQueryCachingPolicy
in class org.apache.lucene.search.IndexSearcher
protected org.apache.lucene.search.IndexSearcher.LeafSlice[] slices(List<org.apache.lucene.index.LeafReaderContext> leaves)
slices
in class org.apache.lucene.search.IndexSearcher
public org.apache.lucene.search.Weight createNormalizedWeight(org.apache.lucene.search.Query query, boolean needsScores) throws IOException
createNormalizedWeight
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Query query, boolean needsScores, float boost) throws IOException
createWeight
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.index.IndexReaderContext getTopReaderContext()
getTopReaderContext
in class org.apache.lucene.search.IndexSearcher
public org.apache.lucene.search.TermStatistics termStatistics(org.apache.lucene.index.Term term, org.apache.lucene.index.TermContext context) throws IOException
termStatistics
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.CollectionStatistics collectionStatistics(String field) throws IOException
collectionStatistics
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.document.Document doc(int n, Set<String> fieldsToLoad) throws IOException
doc
in class org.apache.lucene.search.IndexSearcher
IOException
public void doc(int n, org.apache.lucene.index.StoredFieldVisitor fieldVisitor) throws IOException
doc
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.document.Document doc(int i) throws IOException
doc
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Query query, int doc) throws IOException
explain
in class org.apache.lucene.search.IndexSearcher
IOException
protected org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Weight weight, int doc) throws IOException
explain
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.similarities.Similarity getSimilarity(boolean needsScores)
getSimilarity
in class org.apache.lucene.search.IndexSearcher
public org.apache.lucene.search.Query rewrite(org.apache.lucene.search.Query query) throws IOException
rewrite
in class org.apache.lucene.search.IndexSearcher
IOException
public int count(org.apache.lucene.search.Query query) throws IOException
count
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.TopFieldDocs search(org.apache.lucene.search.Query query, int n, org.apache.lucene.search.Sort sort) throws IOException
search
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.TopDocs search(org.apache.lucene.search.Query query, int n) throws IOException
search
in class org.apache.lucene.search.IndexSearcher
IOException
public void search(org.apache.lucene.search.Query query, org.apache.lucene.search.Collector results) throws IOException
search
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.TopFieldDocs search(org.apache.lucene.search.Query query, int n, org.apache.lucene.search.Sort sort, boolean doDocScores, boolean doMaxScore) throws IOException
search
in class org.apache.lucene.search.IndexSearcher
IOException
public <C extends org.apache.lucene.search.Collector,T> T search(org.apache.lucene.search.Query query, org.apache.lucene.search.CollectorManager<C,T> collectorManager) throws IOException
search
in class org.apache.lucene.search.IndexSearcher
IOException
protected void search(List<org.apache.lucene.index.LeafReaderContext> leaves, org.apache.lucene.search.Weight weight, org.apache.lucene.search.Collector collector) throws IOException
search
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.TopDocs searchAfter(org.apache.lucene.search.ScoreDoc after, org.apache.lucene.search.Query query, int numHits) throws IOException
searchAfter
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.TopDocs searchAfter(org.apache.lucene.search.ScoreDoc after, org.apache.lucene.search.Query query, int n, org.apache.lucene.search.Sort sort) throws IOException
searchAfter
in class org.apache.lucene.search.IndexSearcher
IOException
public org.apache.lucene.search.TopFieldDocs searchAfter(org.apache.lucene.search.ScoreDoc after, org.apache.lucene.search.Query query, int numHits, org.apache.lucene.search.Sort sort, boolean doDocScores, boolean doMaxScore) throws IOException
searchAfter
in class org.apache.lucene.search.IndexSearcher
IOException
public void setSimilarity(org.apache.lucene.search.similarities.Similarity similarity)
setSimilarity
in class org.apache.lucene.search.IndexSearcher
public String toString()
toString
in class org.apache.lucene.search.IndexSearcher
Copyright © 2002-2021 Atlassian. All Rights Reserved.