Class DelegateSearcher
java.lang.Object
org.apache.lucene.search.IndexSearcher
com.atlassian.jira.lucene.internal.index.DelegateSearcher
- All Implemented Interfaces:
Supplier<org.apache.lucene.search.IndexSearcher>
- Direct Known Subclasses:
ManagedIndexSearcher,UnmanagedIndexSearcher
@Deprecated(since="10.4",
forRemoval=true)
public class DelegateSearcher
extends org.apache.lucene.search.IndexSearcher
implements Supplier<org.apache.lucene.search.IndexSearcher>
Deprecated, for removal: This API element is subject to removal in a future version.
Override all searcher methods and delegate to another
IndexSearcher.
Note, this is fragile extension. We need to check each time we update Lucene that new superclass methods have been added and override them too!
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.IndexSearcher
org.apache.lucene.search.IndexSearcher.LeafSlice -
Field Summary
Fields inherited from class org.apache.lucene.search.IndexSearcher
leafContexts, leafSlices, readerContext -
Constructor Summary
ConstructorsConstructorDescriptionDelegateSearcher(@NotNull org.apache.lucene.search.IndexSearcher indexSearcher) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.CollectionStatisticscollectionStatistics(String field) Deprecated, for removal: This API element is subject to removal in a future version.intcount(org.apache.lucene.search.Query query) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.WeightcreateNormalizedWeight(org.apache.lucene.search.Query query, boolean needsScores) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.Query query, boolean needsScores, float boost) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.document.Documentdoc(int i) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.document.DocumentDeprecated, for removal: This API element is subject to removal in a future version.voiddoc(int n, org.apache.lucene.index.StoredFieldVisitor fieldVisitor) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.Explanationexplain(org.apache.lucene.search.Query query, int doc) Deprecated, for removal: This API element is subject to removal in a future version.protected org.apache.lucene.search.Explanationexplain(org.apache.lucene.search.Weight weight, int doc) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.IndexSearcherget()Deprecated, for removal: This API element is subject to removal in a future version.Produce an object.org.apache.lucene.index.IndexReaderDeprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.QueryCacheDeprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.QueryCachingPolicyDeprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.similarities.SimilaritygetSimilarity(boolean needsScores) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.index.IndexReaderContextDeprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.Queryrewrite(org.apache.lucene.search.Query query) Deprecated, for removal: This API element is subject to removal in a future version.protected voidsearch(List<org.apache.lucene.index.LeafReaderContext> leaves, org.apache.lucene.search.Weight weight, org.apache.lucene.search.Collector collector) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.TopDocssearch(org.apache.lucene.search.Query query, int n) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.TopFieldDocssearch(org.apache.lucene.search.Query query, int n, org.apache.lucene.search.Sort sort) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.TopFieldDocssearch(org.apache.lucene.search.Query query, int n, org.apache.lucene.search.Sort sort, boolean doDocScores, boolean doMaxScore) Deprecated, for removal: This API element is subject to removal in a future version.voidsearch(org.apache.lucene.search.Query query, org.apache.lucene.search.Collector results) Deprecated, for removal: This API element is subject to removal in a future version.<C extends org.apache.lucene.search.Collector,T>
Tsearch(org.apache.lucene.search.Query query, org.apache.lucene.search.CollectorManager<C, T> collectorManager) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.TopDocssearchAfter(org.apache.lucene.search.ScoreDoc after, org.apache.lucene.search.Query query, int numHits) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.TopDocssearchAfter(org.apache.lucene.search.ScoreDoc after, org.apache.lucene.search.Query query, int n, org.apache.lucene.search.Sort sort) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.TopFieldDocssearchAfter(org.apache.lucene.search.ScoreDoc after, org.apache.lucene.search.Query query, int numHits, org.apache.lucene.search.Sort sort, boolean doDocScores, boolean doMaxScore) Deprecated, for removal: This API element is subject to removal in a future version.voidsetQueryCache(org.apache.lucene.search.QueryCache queryCache) Deprecated, for removal: This API element is subject to removal in a future version.voidsetQueryCachingPolicy(org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSimilarity(org.apache.lucene.search.similarities.Similarity similarity) Deprecated, for removal: This API element is subject to removal in a future version.protected org.apache.lucene.search.IndexSearcher.LeafSlice[]Deprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.TermStatisticstermStatistics(org.apache.lucene.index.Term term, org.apache.lucene.index.TermContext context) Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.apache.lucene.search.IndexSearcher
getDefaultQueryCache, getDefaultQueryCachingPolicy, getDefaultSimilarity, setDefaultQueryCache, setDefaultQueryCachingPolicy
-
Constructor Details
-
DelegateSearcher
public DelegateSearcher(@NotNull @NotNull org.apache.lucene.search.IndexSearcher indexSearcher) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
get
public org.apache.lucene.search.IndexSearcher get()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SupplierProduce an object. Retrieve an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation. -
getIndexReader
public org.apache.lucene.index.IndexReader getIndexReader()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getIndexReaderin classorg.apache.lucene.search.IndexSearcher
-
setQueryCache
public void setQueryCache(org.apache.lucene.search.QueryCache queryCache) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setQueryCachein classorg.apache.lucene.search.IndexSearcher
-
getQueryCache
public org.apache.lucene.search.QueryCache getQueryCache()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getQueryCachein classorg.apache.lucene.search.IndexSearcher
-
setQueryCachingPolicy
public void setQueryCachingPolicy(org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setQueryCachingPolicyin classorg.apache.lucene.search.IndexSearcher
-
getQueryCachingPolicy
public org.apache.lucene.search.QueryCachingPolicy getQueryCachingPolicy()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getQueryCachingPolicyin classorg.apache.lucene.search.IndexSearcher
-
slices
protected org.apache.lucene.search.IndexSearcher.LeafSlice[] slices(List<org.apache.lucene.index.LeafReaderContext> leaves) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
slicesin classorg.apache.lucene.search.IndexSearcher
-
createNormalizedWeight
public org.apache.lucene.search.Weight createNormalizedWeight(org.apache.lucene.search.Query query, boolean needsScores) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
createNormalizedWeightin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Query query, boolean needsScores, float boost) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
createWeightin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
getTopReaderContext
public org.apache.lucene.index.IndexReaderContext getTopReaderContext()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getTopReaderContextin classorg.apache.lucene.search.IndexSearcher
-
termStatistics
public org.apache.lucene.search.TermStatistics termStatistics(org.apache.lucene.index.Term term, org.apache.lucene.index.TermContext context) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
termStatisticsin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
collectionStatistics
public org.apache.lucene.search.CollectionStatistics collectionStatistics(String field) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
collectionStatisticsin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
doc
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
docin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
doc
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
docin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
doc
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
docin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
explain
public org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Query query, int doc) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
explainin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
explain
protected org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Weight weight, int doc) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
explainin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
getSimilarity
public org.apache.lucene.search.similarities.Similarity getSimilarity(boolean needsScores) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getSimilarityin classorg.apache.lucene.search.IndexSearcher
-
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.search.Query query) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
rewritein classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
count
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
countin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
search
public org.apache.lucene.search.TopFieldDocs search(org.apache.lucene.search.Query query, int n, org.apache.lucene.search.Sort sort) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
search
public org.apache.lucene.search.TopDocs search(org.apache.lucene.search.Query query, int n) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
search
public void search(org.apache.lucene.search.Query query, org.apache.lucene.search.Collector results) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
search
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 Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
search
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 IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
search
protected void search(List<org.apache.lucene.index.LeafReaderContext> leaves, org.apache.lucene.search.Weight weight, org.apache.lucene.search.Collector collector) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
searchAfter
public org.apache.lucene.search.TopDocs searchAfter(org.apache.lucene.search.ScoreDoc after, org.apache.lucene.search.Query query, int numHits) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchAfterin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
searchAfter
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 Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchAfterin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
searchAfter
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 Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
searchAfterin classorg.apache.lucene.search.IndexSearcher- Throws:
IOException
-
setSimilarity
public void setSimilarity(org.apache.lucene.search.similarities.Similarity similarity) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSimilarityin classorg.apache.lucene.search.IndexSearcher
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toStringin classorg.apache.lucene.search.IndexSearcher
-
IndexSearcher.