Package com.jalios.jcms.search
Class LuceneSearchEnginePolicyManager
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyManager<LuceneSearchEnginePolicyFilter>
-
- com.jalios.jcms.search.LuceneSearchEnginePolicyManager
-
public class LuceneSearchEnginePolicyManager extends AbstractPolicyManager<LuceneSearchEnginePolicyFilter>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filterCategoryDocument(org.apache.lucene.document.Document doc, Category cat, java.lang.String lang)
void
filterMemberDocument(org.apache.lucene.document.Document doc, Member mbr)
void
filterPublicationDocument(org.apache.lucene.document.Document doc, Publication pub, java.lang.String lang)
org.apache.lucene.analysis.Analyzer
getAnalyzer(java.lang.String lang, boolean isIndexing)
static LuceneSearchEnginePolicyManager
getInstance()
java.util.HashSet<java.lang.String>
getLanguageStopWordsSet(java.lang.String lang, java.util.HashSet<java.lang.String> jcms)
protected java.lang.String
getStatusXmlTagName()
org.apache.lucene.search.Query
parseQuery(java.lang.String searchString, ParseOptions options, org.apache.lucene.analysis.Analyzer analyzer)
-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyManager
addPolicyFilter, getPolicyFilters, getPolicyFiltersMap, handleException, removePolicyFilter, replacePolicyFilter
-
-
-
-
Method Detail
-
getInstance
public static final LuceneSearchEnginePolicyManager getInstance()
-
getStatusXmlTagName
protected java.lang.String getStatusXmlTagName()
- Specified by:
getStatusXmlTagName
in classAbstractPolicyManager<LuceneSearchEnginePolicyFilter>
-
getLanguageStopWordsSet
public java.util.HashSet<java.lang.String> getLanguageStopWordsSet(java.lang.String lang, java.util.HashSet<java.lang.String> jcms)
-
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer(java.lang.String lang, boolean isIndexing)
-
filterPublicationDocument
public void filterPublicationDocument(org.apache.lucene.document.Document doc, Publication pub, java.lang.String lang)
-
filterCategoryDocument
public void filterCategoryDocument(org.apache.lucene.document.Document doc, Category cat, java.lang.String lang)
-
filterMemberDocument
public void filterMemberDocument(org.apache.lucene.document.Document doc, Member mbr)
-
parseQuery
public org.apache.lucene.search.Query parseQuery(java.lang.String searchString, ParseOptions options, org.apache.lucene.analysis.Analyzer analyzer) throws org.apache.lucene.queryparser.classic.ParseException
- Throws:
org.apache.lucene.queryparser.classic.ParseException
- See Also:
LuceneSearchEnginePolicyFilter.parseQuery(String, ParseOptions, Analyzer, Query)
-
-