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

omitTF is viral, but omitNorms is anti-viral.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      omitTF is viral. if you add document 1 with field "foo" as omitTF, then document 2 has field "foo" without omitTF, they are both treated as omitTF.

      but omitNorms is the opposite. if you have a million documents with field "foo" with omitNorms, then you add just one document without omitting norms,
      now you suddenly have a million 'real norms'.

      I think it would be good for omitNorms to be viral too, just for consistency, and also to prevent huge byte[]'s.
      but another option is to make omitTF anti-viral, which is more "schemaless" i guess.

        Attachments

        1. LUCENE-2846.patch
          30 kB
          Robert Muir
        2. LUCENE-2846.patch
          57 kB
          Robert Muir
        3. LUCENE-2846.patch
          57 kB
          Robert Muir
        4. LUCENE-2846.patch
          58 kB
          Robert Muir

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: