Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.similarities |
This package contains the various ranking models that can be used in Lucene.
|
Modifier and Type | Method and Description |
---|---|
CollectionStatistics |
IndexSearcher.collectionStatistics(String field)
Returns
CollectionStatistics for a field. |
Modifier and Type | Method and Description |
---|---|
protected float |
BM25Similarity.avgFieldLength(CollectionStatistics collectionStats)
The default implementation computes the average as
sumTotalTermFreq / docCount |
Similarity.SimWeight |
TFIDFSimilarity.computeWeight(float boost,
CollectionStatistics collectionStats,
TermStatistics... termStats) |
Similarity.SimWeight |
MultiSimilarity.computeWeight(float boost,
CollectionStatistics collectionStats,
TermStatistics... termStats) |
Similarity.SimWeight |
SimilarityBase.computeWeight(float boost,
CollectionStatistics collectionStats,
TermStatistics... termStats) |
Similarity.SimWeight |
PerFieldSimilarityWrapper.computeWeight(float boost,
CollectionStatistics collectionStats,
TermStatistics... termStats) |
Similarity.SimWeight |
BM25Similarity.computeWeight(float boost,
CollectionStatistics collectionStats,
TermStatistics... termStats) |
Similarity.SimWeight |
BooleanSimilarity.computeWeight(float boost,
CollectionStatistics collectionStats,
TermStatistics... termStats) |
abstract Similarity.SimWeight |
Similarity.computeWeight(float boost,
CollectionStatistics collectionStats,
TermStatistics... termStats)
Compute any collection-level weight (e.g.
|
protected void |
SimilarityBase.fillBasicStats(BasicStats stats,
CollectionStatistics collectionStats,
TermStatistics termStats)
Fills all member fields defined in
BasicStats in stats . |
protected void |
LMSimilarity.fillBasicStats(BasicStats stats,
CollectionStatistics collectionStats,
TermStatistics termStats)
Computes the collection probability of the current term in addition to the
usual statistics.
|
Explanation |
ClassicSimilarity.idfExplain(CollectionStatistics collectionStats,
TermStatistics termStats) |
Explanation |
TFIDFSimilarity.idfExplain(CollectionStatistics collectionStats,
TermStatistics termStats)
Computes a score factor for a simple term and returns an explanation
for that score factor.
|
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.
|
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.