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

Fix IndexWriter working together with EmptyTokenizer and EmptyTokenStream (without CharTermAttribute), fix BaseTokenStreamTestCase

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.0
    • 4.1, 6.0
    • modules/analysis
    • None
    • New

    Description

      TestRandomChains can fail because EmptyTokenizer doesn't have a CharTermAttribute and doesn't compute the end offset (if the offset attribute was added by a filter).

      Attachments

        1. LUCENE-4656.patch
          2 kB
          Adrien Grand
        2. LUCENE-4656.patch
          5 kB
          Adrien Grand
        3. LUCENE-4656-IW-bug.patch
          2 kB
          Uwe Schindler
        4. LUCENE-4656-IW-fix.patch
          9 kB
          Uwe Schindler
        5. LUCENE-4656-IW-fix.patch
          9 kB
          Uwe Schindler
        6. LUCENE-4656_bttc.patch
          3 kB
          Robert Muir
        7. LUCENE-4656.patch
          13 kB
          Uwe Schindler
        8. LUCENE-4656.patch
          13 kB
          Uwe Schindler
        9. LUCENE-4656.patch
          13 kB
          Uwe Schindler
        10. LUCENE-4656.patch
          21 kB
          Uwe Schindler

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              jpountz Adrien Grand
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: