org.apache.solr.search.similarities

## Class LMDirichletSimilarityFactory

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

-     public class LMDirichletSimilarityFactory
      extends SimilarityFactory

  Factory for `LMDirichletSimilarity`

  Parameters:

  - parameter mu (float): smoothing parameter μ. The default is `2000`

  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
    `LMDirichletSimilarityFactory()`

  - ### 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

    - #### LMDirichletSimilarityFactory

          public LMDirichletSimilarityFactory()

  - ### 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.