com.elasticpath.persistence
Interface SpellIndexWriter

All Known Implementing Classes:
SpellIndexWriterImpl

public interface SpellIndexWriter

Represents an index writer that will generate a spelling index based on the contents of the field in another index.


Method Summary
 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.
 

Method Detail

writeSpellIndex

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.

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 locale to index