public abstract class SimilarityFactory extends Object
Similarity
in the Solr
schema.xml.
Subclasses of SimilarityFactory
which are SchemaAware
must take responsibility for either consulting the similarities configured
on individual field types, or generating appropriate error/warning messages
if field type specific similarities exist but are being ignored. The
IndexSchema
will provide such error checking if a
non-SchemaAware
instance of SimilarityFactory
is used.
FieldType.getSimilarity()
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME |
protected SolrParams |
params |
Constructor and Description |
---|
SimilarityFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getClassArg() |
SimpleOrderedMap<Object> |
getNamedPropertyValues()
Returns a serializable description of this similarity(factory)
|
SolrParams |
getParams() |
abstract Similarity |
getSimilarity() |
void |
init(SolrParams params) |
public static final String CLASS_NAME
protected SolrParams params
public void init(SolrParams params)
public SolrParams getParams()
public abstract Similarity getSimilarity()
public SimpleOrderedMap<Object> getNamedPropertyValues()
public String getClassArg()
getClass().getName()
,
unless this class is the anonymous similarity wrapper produced in IndexSchema
, in which
case the getSimilarity().getClass().getName()
is returned.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.