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

omitTF is viral, but omitNorms is anti-viral.

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: