org.apache.solr.search.similarities

## Class DFISimilarityFactory

- java.lang.Object
- - org.apache.solr.schema.SimilarityFactory
  - - org.apache.solr.search.similarities.DFISimilarityFactory

-     public class DFISimilarityFactory
      extends SimilarityFactory

  Factory for `DFISimilarity`

  You must specify the measure of divergence from independence ("independenceMeasure")

  - "Standardized": `IndependenceStandardized`
  - "Saturated": `IndependenceSaturated`
  - "ChiSquared": `IndependenceChiSquared`
  Optional settings:
  - discountOverlaps (bool): Sets `SimilarityBase.setDiscountOverlaps(boolean)`
  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

    Constructors
    Constructor and Description
    `DFISimilarityFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

    - #### DFISimilarityFactory

          public DFISimilarityFactory()

  - ### Method Detail

    - #### init

          public void init(SolrParams params)

      Overrides:
        `init` in class `SimilarityFactory`

    - #### getSimilarity

          public Similarity getSimilarity()

      Specified by:
        `getSimilarity` in class `SimilarityFactory`

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