public class SchemaSimilarityFactory extends SimilarityFactory implements SolrCoreAware
PerFieldSimilarityWrapper
that delegates to the field type, if it's configured, otherwise
DefaultSimilarity
.
NOTE: Users should be aware that in addition to supporting
Similarity
configurations specified on individual
field types, this factory also differs in behavior from
DefaultSimilarityFactory
because of other differences in the
implementations of PerFieldSimilarityWrapper
and
DefaultSimilarity
- notably in methods such as
Similarity.coord(int, int)
and Similarity.queryNorm(float)
.
FieldType.getSimilarity()
CLASS_NAME, params
Constructor and Description |
---|
SchemaSimilarityFactory() |
Modifier and Type | Method and Description |
---|---|
Similarity |
getSimilarity() |
void |
inform(SolrCore core) |
void |
init(SolrParams args) |
getClassArg, getNamedPropertyValues, getParams
public void inform(SolrCore core)
inform
in interface SolrCoreAware
public void init(SolrParams args)
init
in class SimilarityFactory
public Similarity getSimilarity()
getSimilarity
in class SimilarityFactory
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.