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

TokenStream.next(Token) reuse 'policy': calling Token.clear() should be responsibility of producer.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Tokenizers which implement the reuse form of the next method:
      next(Token result)
      should reset the postionIncrement of the returned token to 1.

        Attachments

        1. lucene-1101.patch
          4 kB
          Doron Cohen
        2. lucene-1101.patch
          2 kB
          Doron Cohen
        3. lucene-1101.patch
          2 kB
          Doron Cohen

          Issue Links

            Activity

              People

              • Assignee:
                doronc Doron Cohen
                Reporter:
                doronc Doron Cohen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: