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