Uses of Class
org.apache.lucene.search.IndexSearcher
-
Packages that use IndexSearcher Package Description org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.search Code to search indices.org.apache.lucene.search.spans The calculus of spans. -
-
Uses of IndexSearcher in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type IndexSearcher Modifier and Type Method Description Weight
LatLonDocValuesPointInPolygonQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
XYDocValuesPointInGeometryQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
-
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, IndexReader previousReader)
Expert: creates a searcher from the providedIndexReader
using the providedSearcherFactory
.IndexSearcher
SearcherFactory. newSearcher(IndexReader reader, IndexReader previousReader)
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, ScoreMode scoreMode, float boost)
Weight
BoostQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
ConstantScoreQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
DisjunctionMaxQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Create the Weight used to score usWeight
DocValuesFieldExistsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
IndexOrDocValuesQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
MatchAllDocsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
MatchNoDocsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
MultiPhraseQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
NormsFieldExistsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PhraseQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PointInSetQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PointRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
Query. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Expert: Constructs an appropriate Weight implementation for this query.Weight
SynonymQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
TermInSetQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
TermQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
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.Explanation
QueryRescorer. explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)
abstract Explanation
Rescorer. explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)
Explains how the score for the specified document was computed.Explanation
SortRescorer. explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)
protected int
SearcherManager. getRefCount(IndexSearcher reference)
static void
TopFieldCollector. populateScores(ScoreDoc[] topDocs, IndexSearcher searcher, Query query)
Populatescores
of the giventopDocs
.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)
.TopDocs
QueryRescorer. rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)
static TopDocs
QueryRescorer. rescore(IndexSearcher searcher, TopDocs topDocs, Query query, double weight, int topN)
Sugar API, calling {#rescore} using a simple linear combination of firstPassScore + weight * secondPassScoreabstract TopDocs
Rescorer. rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)
Rescore an initial first-passTopDocs
.TopDocs
SortRescorer. rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)
abstract DoubleValuesSource
DoubleValuesSource. rewrite(IndexSearcher reader)
Return a DoubleValuesSource specialised for the given IndexSearcher Implementations should assume that this will only be called once.abstract LongValuesSource
LongValuesSource. rewrite(IndexSearcher searcher)
Return a LongValuesSource specialised for the given IndexSearcher Implementations should assume that this will only be called once.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 DisjunctionMaxWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Construct the Weight for this Query searched by 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 SpanWeight
FieldMaskingSpanQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanBoostQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanContainingQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanMultiTermQueryWrapper. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanNearQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanNotQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanOrQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanPositionCheckQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
abstract SpanWeight
SpanQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanTermQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
SpanWeight
SpanWithinQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Constructors in org.apache.lucene.search.spans with parameters of type IndexSearcher Constructor Description SpanContainingWeight(IndexSearcher searcher, Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)
SpanNearWeight(List<SpanWeight> subWeights, IndexSearcher searcher, Map<Term,TermStates> terms, float boost)
SpanNotWeight(IndexSearcher searcher, Map<Term,TermStates> terms, SpanWeight includeWeight, SpanWeight excludeWeight, float boost)
SpanOrWeight(IndexSearcher searcher, Map<Term,TermStates> terms, List<SpanWeight> subWeights, float boost)
SpanPositionCheckWeight(SpanWeight matchWeight, IndexSearcher searcher, Map<Term,TermStates> terms, float boost)
SpanTermWeight(TermStates termStates, IndexSearcher searcher, Map<Term,TermStates> terms, float boost)
SpanWeight(SpanQuery query, IndexSearcher searcher, Map<Term,TermStates> termStates, float boost)
Create a new SpanWeightSpanWithinWeight(IndexSearcher searcher, Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)
-