com.gisgraphy.domain.geoloc.service.fulltextsearch.spell
Class SpellCheckerIndexer

java.lang.Object
  extended by com.gisgraphy.domain.geoloc.service.fulltextsearch.spell.SpellCheckerIndexer
All Implemented Interfaces:
ISpellCheckerIndexer

public class SpellCheckerIndexer
extends java.lang.Object
implements ISpellCheckerIndexer

Solr implementation of ISpellCheckerIndexer

Author:
David Masclet

Field Summary
protected static org.slf4j.Logger logger
          The logger
 
Constructor Summary
SpellCheckerIndexer()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Boolean> buildAllIndex()
          Re-index all the SpellCheckerDictionaryNames
 boolean buildIndex(SpellCheckerDictionaryNames spellCheckerDictionaryName)
          re-index the dictionary for the specified spellchecker dictionary name
 void setSolrClient(IsolrClient solrClient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
The logger

Constructor Detail

SpellCheckerIndexer

public SpellCheckerIndexer()
Method Detail

buildAllIndex

public java.util.Map<java.lang.String,java.lang.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(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 © 2010. All Rights Reserved.