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

FieldType problems with Points

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.0
    • None
    • None
    • New

    Description

      The "copy constructor" is buggy and ignores the incoming points properties, because of a bug:

        public FieldType(FieldType ref) {
          ...
          // these two assignments have no effect. 
          this.dimensionCount = dimensionCount;
          this.dimensionNumBytes = dimensionNumBytes;
      

      Another issue is that tokenized() returns true for all these point fields, which is bogus, and it confuses things like transitioning to points in some benchmark code (trying to clean up places still using LegacyNumeric* !!!). This code checks if (tokenized())

      { try to use tokenstream }

      Attachments

        1. LUCENE-7073.patch
          15 kB
          Robert Muir
        2. LUCENE-7073.patch
          11 kB
          Robert Muir
        3. LUCENE-7073.patch
          9 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: