Package | Description |
---|---|
org.apache.lucene.queries |
Filters and Queries that add to core Lucene.
|
org.apache.lucene.queries.function |
Queries that compute score based upon a function.
|
org.apache.lucene.queries.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.search.similarities |
This package contains the various ranking models that can be used in Lucene.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
Modifier and Type | Method and Description |
---|---|
Explanation |
CustomScoreProvider.customExplain(int doc,
Explanation subQueryExpl,
Explanation valSrcExpl)
Explain the custom score.
|
Explanation |
CustomScoreProvider.customExplain(int doc,
Explanation subQueryExpl,
Explanation[] valSrcExpls)
Explain the custom score.
|
private Explanation |
CustomScoreQuery.CustomWeight.doExplain(LeafReaderContext info,
int doc) |
Explanation |
CustomScoreQuery.CustomWeight.explain(LeafReaderContext context,
int doc) |
Modifier and Type | Method and Description |
---|---|
Explanation |
CustomScoreProvider.customExplain(int doc,
Explanation subQueryExpl,
Explanation valSrcExpl)
Explain the custom score.
|
Explanation |
CustomScoreProvider.customExplain(int doc,
Explanation subQueryExpl,
Explanation[] valSrcExpls)
Explain the custom score.
|
Explanation |
CustomScoreProvider.customExplain(int doc,
Explanation subQueryExpl,
Explanation[] valSrcExpls)
Explain the custom score.
|
Modifier and Type | Method and Description |
---|---|
Explanation |
FunctionValues.explain(int doc) |
Explanation |
FunctionQuery.AllScorer.explain(int doc) |
Explanation |
BoostedQuery.CustomScorer.explain(int doc) |
Explanation |
FunctionScoreQuery.FunctionScoreWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
FunctionRangeQuery.FunctionRangeWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
FunctionQuery.FunctionWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
BoostedQuery.BoostedWeight.explain(LeafReaderContext readerContext,
int doc) |
Explanation |
ValueSource.WrappedDoubleValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Modifier and Type | Method and Description |
---|---|
Explanation |
ValueSource.WrappedDoubleValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Modifier and Type | Method and Description |
---|---|
Explanation |
PayloadFunction.explain(int docId,
java.lang.String field,
int numPayloadsSeen,
float payloadScore) |
Explanation |
PayloadScoreQuery.PayloadSpanWeight.explain(LeafReaderContext context,
int doc) |
protected Explanation |
PayloadScoreQuery.PayloadSpanScorer.getPayloadExplanation() |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Explanation> |
Explanation.details |
Modifier and Type | Method and Description |
---|---|
Explanation |
SortRescorer.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 |
QueryRescorer.explain(IndexSearcher searcher,
Explanation firstPassExplanation,
int docID) |
Explanation |
TermAutomatonQuery.TermAutomatonWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
CoveringQuery.CoveringWeight.explain(LeafReaderContext context,
int doc) |
abstract Explanation |
Weight.explain(LeafReaderContext context,
int doc)
An explanation of the score computation for the named document.
|
Explanation |
TermQuery.TermWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
SynonymQuery.SynonymWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
PhraseQuery.PhraseWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
MultiPhraseQuery.MultiPhraseWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
FilterWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
DisjunctionMaxQuery.DisjunctionMaxWeight.explain(LeafReaderContext context,
int doc)
Explain the score we computed for doc
|
Explanation |
ConstantScoreWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
BooleanWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
DoubleValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation)
An explanation of the value for the named document.
|
Explanation |
DoubleValuesSource.ConstantValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Explanation |
DoubleValuesSource.FieldValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Explanation |
IndexSearcher.explain(Query query,
int doc)
Returns an Explanation that describes how
doc scored against
query . |
protected Explanation |
IndexSearcher.explain(Weight weight,
int doc)
Expert: low-level implementation method
Returns an Explanation that describes how
doc scored against
weight . |
Explanation[] |
Explanation.getDetails()
The sub-nodes of this explanation node.
|
static Explanation |
Explanation.match(float value,
java.lang.String description,
java.util.Collection<Explanation> details)
Create a new explanation for a match.
|
static Explanation |
Explanation.match(float value,
java.lang.String description,
Explanation... details)
Create a new explanation for a match.
|
static Explanation |
Explanation.noMatch(java.lang.String description,
java.util.Collection<Explanation> details)
Create a new explanation for a document which does not match.
|
static Explanation |
Explanation.noMatch(java.lang.String description,
Explanation... details)
Create a new explanation for a document which does not match.
|
Modifier and Type | Method and Description |
---|---|
Explanation |
SortRescorer.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 |
QueryRescorer.explain(IndexSearcher searcher,
Explanation firstPassExplanation,
int docID) |
Explanation |
DoubleValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation)
An explanation of the value for the named document.
|
Explanation |
DoubleValuesSource.ConstantValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Explanation |
DoubleValuesSource.FieldValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
static Explanation |
Explanation.match(float value,
java.lang.String description,
Explanation... details)
Create a new explanation for a match.
|
static Explanation |
Explanation.noMatch(java.lang.String description,
Explanation... details)
Create a new explanation for a document which does not match.
|
Modifier and Type | Method and Description |
---|---|
static Explanation |
Explanation.match(float value,
java.lang.String description,
java.util.Collection<Explanation> details)
Create a new explanation for a match.
|
static Explanation |
Explanation.noMatch(java.lang.String description,
java.util.Collection<Explanation> details)
Create a new explanation for a document which does not match.
|
Constructor and Description |
---|
Explanation(boolean match,
float value,
java.lang.String description,
java.util.Collection<Explanation> details)
Create a new explanation
|
Modifier and Type | Method and Description |
---|---|
Explanation |
ToParentBlockJoinQuery.BlockJoinWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
ToChildBlockJoinQuery.ToChildBlockJoinWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
GlobalOrdinalsWithScoreQuery.W.explain(LeafReaderContext context,
int doc) |
Explanation |
GlobalOrdinalsQuery.W.explain(LeafReaderContext context,
int doc) |
Explanation |
ToParentBlockJoinQuery.BlockJoinScorer.explain(LeafReaderContext context,
Weight childWeight) |
Modifier and Type | Field and Description |
---|---|
private Explanation |
TFIDFSimilarity.IDFStats.idf
The idf and its explanation
|
private Explanation |
BM25Similarity.BM25Stats.idf
BM25's idf
|
Modifier and Type | Method and Description |
---|---|
Explanation |
LambdaTTF.explain(BasicStats stats) |
Explanation |
LambdaDF.explain(BasicStats stats) |
abstract Explanation |
Lambda.explain(BasicStats stats)
Explains the lambda parameter.
|
Explanation |
BasicModelIn.explain(BasicStats stats,
float tfn) |
Explanation |
BasicModel.explain(BasicStats stats,
float tfn)
Returns an explanation for the score.
|
Explanation |
AfterEffectL.explain(BasicStats stats,
float tfn) |
Explanation |
AfterEffectB.explain(BasicStats stats,
float tfn) |
abstract Explanation |
AfterEffect.explain(BasicStats stats,
float tfn)
Returns an explanation for the score.
|
Explanation |
AfterEffect.NoAfterEffect.explain(BasicStats stats,
float tfn) |
Explanation |
Normalization.explain(BasicStats stats,
float tf,
float len)
Returns an explanation for the normalized term frequency.
|
Explanation |
Normalization.NoNormalization.explain(BasicStats stats,
float tf,
float len) |
Explanation |
Distribution.explain(BasicStats stats,
float tfn,
float lambda)
Explains the score.
|
protected Explanation |
SimilarityBase.explain(BasicStats stats,
int doc,
Explanation freq,
float docLen)
Explains the score.
|
Explanation |
TFIDFSimilarity.TFIDFSimScorer.explain(int doc,
Explanation freq) |
Explanation |
SimilarityBase.BasicSimScorer.explain(int doc,
Explanation freq) |
Explanation |
Similarity.SimScorer.explain(int doc,
Explanation freq)
Explain the score for a single document
|
Explanation |
MultiSimilarity.MultiSimScorer.explain(int doc,
Explanation freq) |
Explanation |
BM25Similarity.BM25DocScorer.explain(int doc,
Explanation freq) |
private Explanation |
TFIDFSimilarity.explainField(int doc,
Explanation freq,
TFIDFSimilarity.IDFStats stats,
NumericDocValues norms,
float[] normTable) |
private Explanation |
BM25Similarity.explainScore(int doc,
Explanation freq,
BM25Similarity.BM25Stats stats,
NumericDocValues norms,
float[] lengthCache) |
private Explanation |
TFIDFSimilarity.explainScore(int doc,
Explanation freq,
TFIDFSimilarity.IDFStats stats,
NumericDocValues norms,
float[] normTable) |
private Explanation |
BM25Similarity.explainTFNorm(int doc,
Explanation freq,
BM25Similarity.BM25Stats stats,
NumericDocValues norms,
float[] lengthCache) |
Explanation |
TFIDFSimilarity.idfExplain(CollectionStatistics collectionStats,
TermStatistics termStats)
Computes a score factor for a simple term and returns an explanation
for that score factor.
|
Explanation |
ClassicSimilarity.idfExplain(CollectionStatistics collectionStats,
TermStatistics termStats) |
Explanation |
BM25Similarity.idfExplain(CollectionStatistics collectionStats,
TermStatistics termStats)
Computes a score factor for a simple term and returns an explanation
for that score factor.
|
Explanation |
TFIDFSimilarity.idfExplain(CollectionStatistics collectionStats,
TermStatistics[] termStats)
Computes a score factor for a phrase.
|
Explanation |
BM25Similarity.idfExplain(CollectionStatistics collectionStats,
TermStatistics[] termStats)
Computes a score factor for a phrase.
|
Modifier and Type | Method and Description |
---|---|
protected Explanation |
SimilarityBase.explain(BasicStats stats,
int doc,
Explanation freq,
float docLen)
Explains the score.
|
Explanation |
TFIDFSimilarity.TFIDFSimScorer.explain(int doc,
Explanation freq) |
Explanation |
SimilarityBase.BasicSimScorer.explain(int doc,
Explanation freq) |
Explanation |
Similarity.SimScorer.explain(int doc,
Explanation freq)
Explain the score for a single document
|
Explanation |
MultiSimilarity.MultiSimScorer.explain(int doc,
Explanation freq) |
Explanation |
BM25Similarity.BM25DocScorer.explain(int doc,
Explanation freq) |
private Explanation |
TFIDFSimilarity.explainField(int doc,
Explanation freq,
TFIDFSimilarity.IDFStats stats,
NumericDocValues norms,
float[] normTable) |
private Explanation |
BM25Similarity.explainScore(int doc,
Explanation freq,
BM25Similarity.BM25Stats stats,
NumericDocValues norms,
float[] lengthCache) |
private Explanation |
TFIDFSimilarity.explainScore(int doc,
Explanation freq,
TFIDFSimilarity.IDFStats stats,
NumericDocValues norms,
float[] normTable) |
private Explanation |
BM25Similarity.explainTFNorm(int doc,
Explanation freq,
BM25Similarity.BM25Stats stats,
NumericDocValues norms,
float[] lengthCache) |
Modifier and Type | Method and Description |
---|---|
protected void |
SimilarityBase.explain(java.util.List<Explanation> subExpls,
BasicStats stats,
int doc,
float freq,
float docLen)
Subclasses should implement this method to explain the score.
|
protected void |
LMSimilarity.explain(java.util.List<Explanation> subExpls,
BasicStats stats,
int doc,
float freq,
float docLen) |
protected void |
LMJelinekMercerSimilarity.explain(java.util.List<Explanation> subs,
BasicStats stats,
int doc,
float freq,
float docLen) |
protected void |
LMDirichletSimilarity.explain(java.util.List<Explanation> subs,
BasicStats stats,
int doc,
float freq,
float docLen) |
protected void |
IBSimilarity.explain(java.util.List<Explanation> subs,
BasicStats stats,
int doc,
float freq,
float docLen) |
protected void |
DFRSimilarity.explain(java.util.List<Explanation> subs,
BasicStats stats,
int doc,
float freq,
float docLen) |
protected void |
Axiomatic.explain(java.util.List<Explanation> subs,
BasicStats stats,
int doc,
float freq,
float docLen) |
Constructor and Description |
---|
BM25Stats(java.lang.String field,
float boost,
Explanation idf,
float avgdl,
float[] oldCache,
float[] cache) |
IDFStats(java.lang.String field,
float boost,
Explanation idf,
float[] normTable) |
Modifier and Type | Method and Description |
---|---|
Explanation |
SpanWeight.explain(LeafReaderContext context,
int doc) |