Class IBSimilarityFactory
- java.lang.Object
-
- org.apache.solr.schema.SimilarityFactory
-
- org.apache.solr.search.similarities.IBSimilarityFactory
-
public class IBSimilarityFactory extends SimilarityFactory
Factory forIBSimilarity
You must specify the implementations for all three components of the Information-Based model (strings).
distribution
: Probabilistic distribution used to model term occurrenceLL
: Log-logisticSPL
: Smoothed power-law
lambda
: λw parameter of the probability distributionDF
:Nw/N
or average number of documents where w occursTTF
:Fw/N
or average number of occurrences of w in the collection
normalization
: Term frequency normalizationAny supported DFR normalization listed in
DFRSimilarityFactory
Optional settings:
- discountOverlaps (bool): Sets
SimilarityBase.setDiscountOverlaps(boolean)
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.schema.SimilarityFactory
CLASS_NAME, params
-
-
Constructor Summary
Constructors Constructor Description IBSimilarityFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.similarities.Similarity
getSimilarity()
void
init(org.apache.solr.common.params.SolrParams params)
-
Methods inherited from class org.apache.solr.schema.SimilarityFactory
getClassArg, getNamedPropertyValues, getParams
-
-
-
-
Method Detail
-
init
public void init(org.apache.solr.common.params.SolrParams params)
- Overrides:
init
in classSimilarityFactory
-
getSimilarity
public org.apache.lucene.search.similarities.Similarity getSimilarity()
- Specified by:
getSimilarity
in classSimilarityFactory
-
-