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

Disallow setBoost() on StringField, throw exception if boosts are set if norms are omitted

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 3.6, 4.0-ALPHA
    • None
    • None
    • New

    Description

      Occasionally users are confused why index-time boosts are not applied to their norms-omitted fields.

      This is because we silently discard the boost: there is no reason for this!

      The most absurd part: in 4.0 you can make a StringField and call setBoost and nothing complains... (more reasons to remove StringField totally in my opinion)

      Attachments

        1. LUCENE-3796.patch
          2 kB
          Robert Muir
        2. LUCENE-3796.patch
          7 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: