Lucene - Core
  1. Lucene - Core
  2. LUCENE-4642

Add create(AttributeFactory) to TokenizerFactory and subclasses with ctors taking AttributeFactory, and remove Tokenizer's and subclasses' ctors taking AttributeSource

    Details

    • Lucene Fields:
      New, Patch Available

      Description

      All tokenizer implementations have a constructor that takes a given AttributeSource as parameter (LUCENE-1826). These should be removed.

      TokenizerFactory does not provide an API to create tokenizers with a given AttributeFactory, but quite a few tokenizers have constructors that take an AttributeFactory. TokenizerFactory should add a create(AttributeFactory) method, as should subclasses for tokenizers with AttributeFactory accepting ctors.

      1. LUCENE-4642.patch
        25 kB
        Renaud Delbru
      2. LUCENE-4642.patch
        18 kB
        Steve Rowe
      3. TrieTokenizerFactory.java.patch
        2 kB
        Uwe Schindler
      4. LUCENE-4642.patch
        34 kB
        Renaud Delbru
      5. LUCENE-4642.patch
        35 kB
        Steve Rowe
      6. LUCENE-4642-single-create-method-on-TokenizerFactory-subclasses.patch
        33 kB
        Steve Rowe
      7. LUCENE-4642-single-create-method-on-TokenizerFactory-subclasses.patch
        32 kB
        Steve Rowe

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Steve Rowe
            Reporter:
            Renaud Delbru
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development