Solr
  1. Solr
  2. SOLR-1377

Force TokenizerFactory to create a Tokenizer rather then TokenStream

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      The new token reuse classes require that they are created with a Tokenizer. The solr TokenizerFactory interface currently makes a TokenStream.

      Although this is an API breaking change, the alternative is to just document that it needs to be a Tokenizer instance and throw an error when it is not.

      For more discussion, see:
      http://www.lucidimagination.com/search/document/272b8c4e6198d887/trunk_classcastexception_with_basetokenizerfactory

      1. SOLR-1377.patch
        10 kB
        Yonik Seeley
      2. SOLR-1377-Tokenizer.patch
        9 kB
        Ryan McKinley

        Activity

        Ryan McKinley created issue -
        Ryan McKinley made changes -
        Field Original Value New Value
        Attachment SOLR-1377-Tokenizer.patch [ 12417304 ]
        Yonik Seeley made changes -
        Attachment SOLR-1377.patch [ 12417321 ]
        Ryan McKinley made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Grant Ingersoll made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ryan McKinley
            Reporter:
            Ryan McKinley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development