org.apache.lucene.analysis.wikipedia

## Class WikipediaTokenizerFactory

- java.lang.Object
- - org.apache.lucene.analysis.util.AbstractAnalysisFactory
  - - org.apache.lucene.analysis.util.TokenizerFactory
    - - org.apache.lucene.analysis.wikipedia.WikipediaTokenizerFactory

-     public class WikipediaTokenizerFactory
      extends TokenizerFactory

  Factory for `WikipediaTokenizer`.

       <fieldType name="text_wiki" class="solr.TextField" positionIncrementGap="100">
         <analyzer>
           <tokenizer class="solr.WikipediaTokenizerFactory"/>
         </analyzer>
       </fieldType>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `TOKEN_OUTPUT`
    `protected int` | `tokenOutput`
    `static String` | `UNTOKENIZED_TYPES`
    `protected Set<String>` | `untokenizedTypes`

    - ### Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory

      `LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `WikipediaTokenizerFactory(Map<String,String> args)` Creates a new WikipediaTokenizerFactory

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `WikipediaTokenizer` | `create(AttributeFactory factory)` Creates a TokenStream of the specified input using the given AttributeFactory

    - ### Methods inherited from class org.apache.lucene.analysis.util.TokenizerFactory

      `availableTokenizers, create, forName, lookupClass, reloadTokenizers`

    - ### Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory

      `get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### TOKEN_OUTPUT

          public static final String TOKEN_OUTPUT

      See Also:
        Constant Field Values

    - #### UNTOKENIZED_TYPES

          public static final String UNTOKENIZED_TYPES

      See Also:
        Constant Field Values

    - #### tokenOutput

          protected final int tokenOutput

    - #### untokenizedTypes

          protected Set<String> untokenizedTypes

  - ### Constructor Detail

    - #### WikipediaTokenizerFactory

          public WikipediaTokenizerFactory(Map<String,String> args)

      Creates a new WikipediaTokenizerFactory

  - ### Method Detail

    - #### create

          public WikipediaTokenizer create(AttributeFactory factory)

      Description copied from class: `TokenizerFactory`
      Creates a TokenStream of the specified input using the given AttributeFactory
      Specified by:
        `create` in class `TokenizerFactory`

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.