Uses of Class
org.apache.lucene.search.IndexSearcher
-
Packages that use IndexSearcher Package Description org.apache.lucene.search Code to search indices.org.apache.lucene.search.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.search.spans The calculus of spans. -
-
Uses of IndexSearcher in org.apache.lucene.search
Methods in org.apache.lucene.search that return IndexSearcher Modifier and Type Method Description IndexSearcher
SearcherLifetimeManager. acquire(long version)
Retrieve a previously recordedIndexSearcher
, if it has not yet been closedstatic IndexSearcher
SearcherManager. getSearcher(SearcherFactory searcherFactory, IndexReader reader)
Expert: creates a searcher from the providedIndexReader
using the providedSearcherFactory
.IndexSearcher
SearcherFactory. newSearcher(IndexReader reader)
Returns a new IndexSearcher over the given reader.protected IndexSearcher
SearcherManager. refreshIfNeeded(IndexSearcher referenceToRefresh)
Methods in org.apache.lucene.search with parameters of type IndexSearcher Modifier and Type Method Description Weight
BooleanQuery. createWeight(IndexSearcher searcher)
Weight
ConstantScoreQuery. createWeight(IndexSearcher searcher)
Weight
DisjunctionMaxQuery. createWeight(IndexSearcher searcher)
Create the Weight used to score usWeight
FilteredQuery. createWeight(IndexSearcher searcher)
Returns a Weight that applies the filter to the enclosed query's Weight.Weight
MatchAllDocsQuery. createWeight(IndexSearcher searcher)
Weight
MultiPhraseQuery. createWeight(IndexSearcher searcher)
Weight
PhraseQuery. createWeight(IndexSearcher searcher)
Weight
Query. createWeight(IndexSearcher searcher)
Expert: Constructs an appropriate Weight implementation for this query.Weight
TermQuery. createWeight(IndexSearcher searcher)
protected void
SearcherManager. decRef(IndexSearcher reference)
boolean
SearcherLifetimeManager.PruneByAge. doPrune(double ageSec, IndexSearcher searcher)
boolean
SearcherLifetimeManager.Pruner. doPrune(double ageSec, IndexSearcher searcher)
Return true if this searcher should be removed.protected int
SearcherManager. getRefCount(IndexSearcher reference)
long
SearcherLifetimeManager. record(IndexSearcher searcher)
Records that you are now using this IndexSearcher.protected IndexSearcher
SearcherManager. refreshIfNeeded(IndexSearcher referenceToRefresh)
void
SearcherLifetimeManager. release(IndexSearcher s)
Release a searcher previously obtained fromSearcherLifetimeManager.acquire(long)
.Sort
Sort. rewrite(IndexSearcher searcher)
Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting.SortField
SortField. rewrite(IndexSearcher searcher)
Rewrites this SortField, returning a new SortField if a change is made.protected boolean
SearcherManager. tryIncRef(IndexSearcher reference)
Constructors in org.apache.lucene.search with parameters of type IndexSearcher Constructor Description BooleanWeight(IndexSearcher searcher, boolean disableCoord)
ConstantWeight(IndexSearcher searcher)
DisjunctionMaxWeight(IndexSearcher searcher)
Construct the Weight for this Query searched by searcher. -
Uses of IndexSearcher in org.apache.lucene.search.payloads
Methods in org.apache.lucene.search.payloads with parameters of type IndexSearcher Modifier and Type Method Description Weight
PayloadNearQuery. createWeight(IndexSearcher searcher)
Weight
PayloadTermQuery. createWeight(IndexSearcher searcher)
Constructors in org.apache.lucene.search.payloads with parameters of type IndexSearcher Constructor Description PayloadNearSpanWeight(SpanQuery query, IndexSearcher searcher)
PayloadTermWeight(PayloadTermQuery query, IndexSearcher searcher)
-
Uses of IndexSearcher in org.apache.lucene.search.spans
Methods in org.apache.lucene.search.spans with parameters of type IndexSearcher Modifier and Type Method Description Weight
FieldMaskingSpanQuery. createWeight(IndexSearcher searcher)
Weight
SpanQuery. createWeight(IndexSearcher searcher)
Constructors in org.apache.lucene.search.spans with parameters of type IndexSearcher Constructor Description SpanWeight(SpanQuery query, IndexSearcher searcher)
-