|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.search.indexEngine.model.DidYouMeanIndexer
public class DidYouMeanIndexer
This class allows to manage the specific index of "did you mean" functionality.
creates new entry into index
clear all the entries from index
Field Summary | |
---|---|
static String |
SUFFIX_SPELLING_INDEX_PATH
Suffix used to differentiate the standard index path's and the spelling index path's |
Method Summary | |
---|---|
static boolean |
clearSpellIndex(String pathSpellChecker)
Clears all the entries from given spelling index |
static void |
clearSpellIndex(String[] paths)
Allows to empty several indexes at once. if the operation fails for an index, it will continue for the other indexes |
static void |
createSpellIndex(String field,
String originalIndexDirectory)
creates or updates a spelling index. |
static void |
createSpellIndex(String field,
String originalIndexDirectory,
String spellIndexDirectory)
creates or updates a spelling index. |
static void |
createSpellIndexForAllLanguage(String field,
String originalIndexDirectory)
Tries to creates or updates a spelling index for all language manage by the application instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SUFFIX_SPELLING_INDEX_PATH
Method Detail |
---|
public static void createSpellIndex(String field, String originalIndexDirectory, String spellIndexDirectory)
field
- name of the field of the index source that will be used to feed the spelling indexoriginalIndexDirectory
- represents the source index pathspellIndexDirectory
- represents the spelling index pathpublic static void createSpellIndex(String field, String originalIndexDirectory)
field
- name of the field of the index source that will be used to feed the spelling indexoriginalIndexDirectory
- represents the source index pathDidYouMeanIndexer.SUFFIX_SPELLING_INDEX_PATH
public static boolean clearSpellIndex(String pathSpellChecker)
pathSpellChecker
- The SpellChecker's path to clear. The path must be a directory path.
public static void clearSpellIndex(String[] paths)
paths
- array of index path. List of index path to emptypublic static void createSpellIndexForAllLanguage(String field, String originalIndexDirectory)
field
- name of the field of the index source that will be used to feed the spelling indexoriginalIndexDirectory
- represents the source index pathDidYouMeanIndexer.SUFFIX_SPELLING_INDEX_PATH
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |