public abstract class AbstractSimilarityProvider extends Object implements SimilarityProvider
SimilarityProvider
providing common behaviourSimilarityProvider.Factory
Modifier and Type | Field and Description |
---|---|
protected static org.apache.lucene.search.similarities.Normalization |
NO_NORMALIZATION |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSimilarityProvider(String name)
Creates a new AbstractSimilarityProvider with the given name
|
Modifier and Type | Method and Description |
---|---|
String |
name()
Returns the name associated with the Provider
|
protected org.apache.lucene.search.similarities.Normalization |
parseNormalization(Settings settings)
Parses the given Settings and creates the appropriate
Normalization |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
protected static final org.apache.lucene.search.similarities.Normalization NO_NORMALIZATION
protected AbstractSimilarityProvider(String name)
name
- Name of the Providerpublic String name()
name
in interface SimilarityProvider
protected org.apache.lucene.search.similarities.Normalization parseNormalization(Settings settings)
Normalization
settings
- Settings to parseNormalization
referred to in the SettingsCopyright © 2009–2016. All rights reserved.