public class ClassicSimilarityFactory extends SimilarityFactory
ClassicSimilarity
ClassicSimilarity is Lucene's original scoring implementation, based upon the Vector Space Model.
Optional settings:
ClassicSimilarity.setDiscountOverlaps(boolean)
TFIDFSimilarity
Modifier and Type | Field and Description |
---|---|
static String |
DISCOUNT_OVERLAPS
Init param name for specifying the value to use in
ClassicSimilarity.setDiscountOverlaps(boolean) |
protected boolean |
discountOverlaps
Controls the value of
ClassicSimilarity.setDiscountOverlaps(boolean)
on newly constructed instances of ClassicSimilarity |
CLASS_NAME, params
Constructor and Description |
---|
ClassicSimilarityFactory() |
Modifier and Type | Method and Description |
---|---|
Similarity |
getSimilarity() |
void |
init(SolrParams params) |
getClassArg, getNamedPropertyValues, getParams
public static final String DISCOUNT_OVERLAPS
ClassicSimilarity.setDiscountOverlaps(boolean)
protected boolean discountOverlaps
ClassicSimilarity.setDiscountOverlaps(boolean)
on newly constructed instances of ClassicSimilarity
public void init(SolrParams params)
init
in class SimilarityFactory
public Similarity getSimilarity()
getSimilarity
in class SimilarityFactory
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.