Class DFRSimilarityFactory

  extended by org.apache.solr.schema.SimilarityFactory
      extended by

public class DFRSimilarityFactory
extends SimilarityFactory

Factory for DFRSimilarity

You must specify the implementations for all three components of DFR (strings). In general the models are parameter-free, but two of the normalizations take floating point parameters (see below):

  1. basicModel: Basic model of information content:
  2. afterEffect: First normalization of information gain:
  3. normalization: Second (length) normalization:

Optional settings:

WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
Fields inherited from class org.apache.solr.schema.SimilarityFactory
CLASS_NAME, params
Constructor Summary
Method Summary
 Similarity getSimilarity()
 void init(SolrParams params)
Methods inherited from class org.apache.solr.schema.SimilarityFactory
getClassArg, getNamedPropertyValues, getParams
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DFRSimilarityFactory()
Method Detail


public void init(SolrParams params)
init in class SimilarityFactory


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

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