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

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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
          7 kB
          Robert Muir
        2. LUCENE-3796.patch
          2 kB
          Robert Muir

          Activity

            People

            • Assignee:
              rcmuir Robert Muir
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: