Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1377

Force TokenizerFactory to create a Tokenizer rather then TokenStream

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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

        Attachments

          Activity

            People

            • Assignee:
              ryantxu Ryan McKinley
              Reporter:
              ryantxu Ryan McKinley

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment