Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4801

Documentation is incorrect for org.apache.lucene.misc.SweetSpotSimilarity

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.2, 6.0
    • modules/other
    • New

    Description

      The documentation for SweetSpotSimilarity says that you can configure a global min/max and also a min/max per field, however at looking at the source and just trying to accomplish this it looks as though it's not possible. Is that correct?

      I looked into using SchemaSimilarityFactory as a global Similarity and then using SweetSpotSimilarity on a fieldType, but was not able to configure the min and max values. Is there a way to accomplish that without writing my own SweetSpotSimilarityFactory?

      Thanks.

      Attachments

        Activity

          People

            hossman Chris M. Hostetter
            andrewschoen Andrew Schoen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: