|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elasticpath.persistence.impl.SpellIndexSearcherImpl
public class SpellIndexSearcherImpl
A Lucene-based implementation of SpellIndexSearcher.
Constructor Summary | |
---|---|
SpellIndexSearcherImpl()
|
Method Summary | |
---|---|
ElasticPath |
getElasticPath()
Gets the ElasticPath instance. |
void |
setElasticPath(ElasticPath elasticPath)
Set the ElasticPath instance. |
java.lang.String[] |
suggest(java.lang.String spellIndexDir,
java.lang.String sourceIndexDir,
java.lang.String field,
java.lang.String query,
java.util.Locale locale)
Generates a list of alternate queries that are similar to the supplied query. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpellIndexSearcherImpl()
Method Detail |
---|
public ElasticPath getElasticPath()
ElasticPath
instance.
ElasticPath
instancepublic void setElasticPath(ElasticPath elasticPath)
ElasticPath
instance.
elasticPath
- the instance of ElasticPath
public java.lang.String[] suggest(java.lang.String spellIndexDir, java.lang.String sourceIndexDir, java.lang.String field, java.lang.String query, java.util.Locale locale)
suggest
in interface SpellIndexSearcher
spellIndexDir
- the directory of the spelling indexsourceIndexDir
- the directory of the source indexfield
- the field of the source indexquery
- the original querylocale
- the locale to use to search
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |