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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.2, 6.0
    • Component/s: modules/other
    • Labels:
    • Lucene Fields:
      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

            • Assignee:
              hossman Chris M. Hostetter
              Reporter:
              andrewschoen Andrew Schoen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: