public class IndexBasedSpellChecker extends AbstractRondhuitSpellChecker
<fieldType name="text_ja_spell" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true"> <analyzer> <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ja.txt"/> <charFilter class="com.rondhuit.solr.analysis.NakaguroCharFilterFactory"/> <tokenizer class="solr.JapaneseTokenizerFactory"/> <filter class="solr.JapaneseKatakanaStemFilterFactory"/> <filter class="com.rondhuit.solr.analysis.JaReadingInjectionFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType>
<searchComponent name="spellcheck" class="solr.SpellCheckComponent"> <str name="queryAnalyzerFieldType">text_ws</str> <lst name="spellchecker"> <str name="classname">com.rondhuit.solr.spell.IndexBasedSpellChecker</str> <str name="name">default</str> <str name="field">statement_buzz</str> <str name="spellcheckIndexDir">spellchecker</str> <str name="wordAnalyzerFieldType">text_ja_spell</str> </lst> </searchComponent> <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy"> <lst name="defaults"> <str name="df">statement</str> <str name="spellcheck.onlyMorePopular">false</str> <str name="spellcheck.extendedResults">false</str> <str name="spellcheck.count">1</str> </lst> <arr name="last-components"> <str>spellcheck</str> </arr> </requestHandler>
修飾子とタイプ | フィールドと説明 |
---|---|
protected IndexReader |
reader |
protected float |
threshold |
static java.lang.String |
THRESHOLD_TOKEN_FREQUENCY |
accuracy, ACCURACY, COMPARATOR_CLASS, DEFAULT_SUGGESTION_COUNT, dictionary, FREQ_COMP, index, INDEX_DIR, indexDir, LOCATION, SCORE_COMP, sd, sourceLocation, spellChecker, SPELLCHECKER_ARG_NAME, STRING_DISTANCE
analyzer, DEFAULT_DICTIONARY_NAME, DICTIONARY_NAME, field, FIELD, FIELD_TYPE, fieldTypeName, name
コンストラクタと説明 |
---|
IndexBasedSpellChecker() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
build(SolrCore core,
SolrIndexSearcher searcher) |
protected IndexReader |
determineReader(IndexReader reader) |
float |
getThreshold() |
java.lang.String |
init(org.apache.solr.common.util.NamedList config,
SolrCore core) |
void |
reload(SolrCore core,
SolrIndexSearcher searcher) |
getAccuracy, getField, getFieldTypeName, getIndexDir, getSourceLocation, getSpellChecker, getStringDistance, getSuggestions, initIndex
getDictionaryName, getQueryAnalyzer, isSuggestionsMayOverlap, mergeSuggestions
public static final java.lang.String THRESHOLD_TOKEN_FREQUENCY
protected float threshold
protected IndexReader reader
public java.lang.String init(org.apache.solr.common.util.NamedList config, SolrCore core)
init
クラス内 AbstractRondhuitSpellChecker
public void build(SolrCore core, SolrIndexSearcher searcher) throws java.io.IOException
build
クラス内 SolrSpellChecker
java.io.IOException
protected IndexReader determineReader(IndexReader reader)
determineReader
クラス内 AbstractRondhuitSpellChecker
public void reload(SolrCore core, SolrIndexSearcher searcher) throws java.io.IOException
reload
クラス内 AbstractRondhuitSpellChecker
java.io.IOException
public float getThreshold()
Copyright © 2009-2018 RONDHUIT Co.,Ltd. All Rights Reserved.