com.elasticpath.persistence.impl
Class SpellIndexWriterImpl
java.lang.Object
com.elasticpath.persistence.impl.SpellIndexWriterImpl
- All Implemented Interfaces:
- SpellIndexWriter
public class SpellIndexWriterImpl
- extends java.lang.Object
- implements SpellIndexWriter
A Lucene based implementation of the SpellIndexWriter interface.
Method Summary |
void |
setElasticPath(ElasticPath elasticPath)
Set the ElasticPath instance. |
void |
writeSpellIndex(java.lang.String field,
java.lang.String sourceIndexDir,
java.lang.String destIndexDir,
java.util.Locale locale)
Generates and saves a spelling index from the contents of a field in an
existing index. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpellIndexWriterImpl
public SpellIndexWriterImpl()
setElasticPath
public void setElasticPath(ElasticPath elasticPath)
- Set the
ElasticPath
instance.
- Parameters:
elasticPath
- the instance of ElasticPath
writeSpellIndex
public void writeSpellIndex(java.lang.String field,
java.lang.String sourceIndexDir,
java.lang.String destIndexDir,
java.util.Locale locale)
- Generates and saves a spelling index from the contents of a field in an
existing index.
- Specified by:
writeSpellIndex
in interface SpellIndexWriter
- Parameters:
field
- the field of the source index to extract terms fromsourceIndexDir
- the source indexdestIndexDir
- the destination for the spelling indexlocale
- the local to index