|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LuceneSearchEnginePolicyFilter
This class allow developers to put hooks to change lucene search engine mechanism behaviour. To get more information about the current request in hooks, the method Channel#getCurrentJcmsContext() must be called.
Field Summary | |
---|---|
static String |
REVISION
|
Method Summary | |
---|---|
void |
filterCategoryDocument(org.apache.lucene.document.Document doc,
Category cat,
String lang)
This method is called when the given Category is being index in the given language, just before writing the Document into the index. |
void |
filterFileDocument(org.apache.lucene.document.Document doc,
File file)
This method is called when the given File is being index, just before writing the Document into the index. |
void |
filterMemberDocument(org.apache.lucene.document.Document doc,
Member mbr)
This method is called when the given Member is being index, just before writing the Document into the index. |
void |
filterPublicationDocument(org.apache.lucene.document.Document doc,
Publication pub,
String lang)
This method is called when the given Publication is being index in the given language, just before writing the Document into the index. |
org.apache.lucene.analysis.Analyzer |
getAnalyzer(String lang,
boolean isIndexing,
org.apache.lucene.analysis.Analyzer analyzer)
Return the Lucene Analyzer to use for a given language. |
HashSet<String> |
getLanguageStopWordsSet(String lang,
HashSet<String> jcms)
Retrieves stop words of the specified language. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.jalios.jcms.plugin.PluginComponent |
---|
init |
Field Detail |
---|
static final String REVISION
Method Detail |
---|
HashSet<String> getLanguageStopWordsSet(String lang, HashSet<String> jcms)
lang
- a ISO-639 language codejcms
- the default Set stop word configured in JCMS
org.apache.lucene.analysis.Analyzer getAnalyzer(String lang, boolean isIndexing, org.apache.lucene.analysis.Analyzer analyzer)
lang
- the ISO-639 code of the language analyzedisIndexing
- true if the returned anallyzer is to be used
for indexing, false in any other case (e.g. during search etc..)
You may want to use this parameter to change the behaviour of your
analyzer during those case (for example, synonym analyzer must
generate synonyms only when indexing, not during search).analyzer
- the internal Analyzer, created by JCMS, that should be
returned if you do not want to return a customize analyzer
void filterPublicationDocument(org.apache.lucene.document.Document doc, Publication pub, String lang)
doc
- the lucene Document that was created by JCMS search enginepub
- the Publication
being indexedlang
- the indexed languageLucenePublicationSearchEngine
void filterCategoryDocument(org.apache.lucene.document.Document doc, Category cat, String lang)
doc
- the lucene Document that was created by JCMS search enginecat
- the Category
being indexedlang
- the indexed languageLuceneCategorySearchEngine
void filterFileDocument(org.apache.lucene.document.Document doc, File file)
doc
- the lucene Document that was created by JCMS search enginefile
- the File
being indexedLuceneFileSearchEngine
void filterMemberDocument(org.apache.lucene.document.Document doc, Member mbr)
doc
- the lucene Document that was created by JCMS search enginembr
- the Member
being indexedLuceneFileSearchEngine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |