org.apache.solr.search.similarities
Class SchemaSimilarityFactory

java.lang.Object
  extended by org.apache.solr.schema.SimilarityFactory
      extended by org.apache.solr.search.similarities.SchemaSimilarityFactory
All Implemented Interfaces:
SchemaAware

public class SchemaSimilarityFactory
extends SimilarityFactory
implements SchemaAware

SimilarityFactory that returns a PerFieldSimilarityWrapper that delegates to the fieldtype, if its configured, otherwise DefaultSimilarity.


Field Summary
 
Fields inherited from class org.apache.solr.schema.SimilarityFactory
params
 
Constructor Summary
SchemaSimilarityFactory()
           
 
Method Summary
 Similarity getSimilarity()
           
 void inform(IndexSchema schema)
          Informs the IndexSchema provided by the schema parameter of an event (e.g., a new FieldType was added, etc.
 
Methods inherited from class org.apache.solr.schema.SimilarityFactory
getParams, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaSimilarityFactory

public SchemaSimilarityFactory()
Method Detail

inform

public void inform(IndexSchema schema)
Description copied from interface: SchemaAware
Informs the IndexSchema provided by the schema parameter of an event (e.g., a new FieldType was added, etc.

Specified by:
inform in interface SchemaAware
Parameters:
schema - The IndexSchema instance that inform of the update to.

getSimilarity

public Similarity getSimilarity()
Specified by:
getSimilarity in class SimilarityFactory


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.