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

Wrong default attribute factory in use

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.2, 7.0
    • 6.2, 7.0
    • None
    • None
    • New

    Description

      Originally reported to the mailing list: http://mail-archives.apache.org/mod_mbox/lucene-java-user/201607.mbox/%3cCAJ0VynnMAH7N7byPevTV9Htxo-Nk-B7mwUwRgP4X8gN=V4pYBg@mail.gmail.com%3e

      LUCENE-7355 made a change to CustomAnalyzer.createComponents() such that it uses a different AttributeFactory. https://github.com/apache/lucene-solr/commit/e92a38af90d12e51390b4307ccbe0c24ac7b6b4e#diff-b39a076156e10aa7a4ba86af0357a0feL122

      The previous default was TokenStream.DEFAULT_TOKEN_ATTRIBUTE_FACTORY which uses PackedTokenAttributeImpl while the new default is now AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY which does not use PackedTokenAttributeImpl.

      thetaphi Asked me to open an issue for this.

      Attachments

        1. LUCENE-7382.patch
          1.0 kB
          Uwe Schindler

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              shebiki Terry Smith
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: