public final class NGramSynonymTokenizerFactory extends TokenizerFactory implements ResourceLoaderAware
NGramSynonymTokenizer
. This doesn't support one way (=>) synonym definition.
<fieldType name="text_2gs" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true"> <analyzer type="index"> <tokenizer class="com.rondhuit.solr.analysis.NGramSynonymTokenizerFactory" expand="true" synonyms="synonyms.txt"/> </analyzer> <analyzer type="query"> <tokenizer class="com.rondhuit.solr.analysis.NGramSynonymTokenizerFactory" expand="false" synonyms="synonyms.txt"/> </analyzer> </fieldType>
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
コンストラクタと説明 |
---|
NGramSynonymTokenizerFactory(java.util.Map<java.lang.String,java.lang.String> args) |
修飾子とタイプ | メソッドと説明 |
---|---|
Tokenizer |
create(AttributeFactory factory) |
static Analyzer |
getAnalyzer(boolean ignoreCase) |
void |
inform(ResourceLoader loader) |
static SynonymMap |
loadSolrSynonyms(ResourceLoader loader,
boolean dedup,
Analyzer analyzer,
boolean expand,
java.lang.String synonyms) |
availableTokenizers, create, forName, lookupClass, reloadTokenizers
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
public NGramSynonymTokenizerFactory(java.util.Map<java.lang.String,java.lang.String> args)
public Tokenizer create(AttributeFactory factory)
create
クラス内 TokenizerFactory
public void inform(ResourceLoader loader) throws java.io.IOException
inform
インタフェース内 ResourceLoaderAware
java.io.IOException
public static Analyzer getAnalyzer(boolean ignoreCase)
public static SynonymMap loadSolrSynonyms(ResourceLoader loader, boolean dedup, Analyzer analyzer, boolean expand, java.lang.String synonyms) throws java.io.IOException, java.text.ParseException
java.io.IOException
java.text.ParseException
Copyright © 2009-2018 RONDHUIT Co.,Ltd. All Rights Reserved.