com.elasticpath.persistence.impl
Class SpellIndexWriterImpl

java.lang.Object
  extended by 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.


Constructor Summary
SpellIndexWriterImpl()
           
 
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
 

Constructor Detail

SpellIndexWriterImpl

public SpellIndexWriterImpl()
Method Detail

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 from
sourceIndexDir - the source index
destIndexDir - the destination for the spelling index
locale - the local to index