com.gisgraphy.fulltext.spell
Class SpellCheckerIndexer
java.lang.Object
com.gisgraphy.fulltext.spell.SpellCheckerIndexer
- All Implemented Interfaces:
- ISpellCheckerIndexer
public class SpellCheckerIndexer
- extends Object
- implements ISpellCheckerIndexer
Solr implementation of ISpellCheckerIndexer
- Author:
- David Masclet
Field Summary |
protected static org.slf4j.Logger |
logger
The logger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
- The logger
SpellCheckerIndexer
public SpellCheckerIndexer()
buildAllIndex
public Map<String,Boolean> buildAllIndex()
- Description copied from interface:
ISpellCheckerIndexer
- Re-index all the SpellCheckerDictionaryNames
- Specified by:
buildAllIndex
in interface ISpellCheckerIndexer
- Returns:
- a map with dictioanry name as key and boolean as value. the
boolean is equal to true if the index has succeed for the
dictionary
buildIndex
public boolean buildIndex(com.gisgraphy.fulltext.spell.SpellCheckerDictionaryNames spellCheckerDictionaryName)
- Description copied from interface:
ISpellCheckerIndexer
- re-index the dictionary for the specified spellchecker dictionary name
- Specified by:
buildIndex
in interface ISpellCheckerIndexer
- Parameters:
spellCheckerDictionaryName
- the spellChecker Dictionary to index / re-index
setSolrClient
public void setSolrClient(IsolrClient solrClient)
- Parameters:
solrClient
- the solrClient to set
Copyright © 2012. All Rights Reserved.