java.lang.Object
org.apache.jena.query.text.analyzer.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAnalyzer(String lang, org.apache.lucene.analysis.Analyzer analyzer) static voidaddAuxIndexes(String tag, List<String> tags) static voidaddIndexAnalyzer(String tag, org.apache.lucene.analysis.Analyzer analyzer) static voidaddPropsList(org.apache.jena.rdf.model.Resource prop, List<org.apache.jena.rdf.model.Resource> list) static voidaddSearchForTags(String tag, List<String> tags) static voiddefineAnalyzer(org.apache.jena.rdf.model.Resource key, org.apache.lucene.analysis.Analyzer analyzer) static voidgetAuxIndexes(String tag) static org.apache.lucene.analysis.AnalyzergetDefinedAnalyzer(org.apache.jena.rdf.model.Resource key) static StringgetEffectiveLang(String docLang, String queryLang) static org.apache.lucene.analysis.AnalyzergetIndexAnalyzer(String tag) static org.apache.lucene.analysis.AnalyzergetLocalizedAnalyzer(String lang) static List<org.apache.jena.rdf.model.Resource>getPropList(org.apache.jena.rdf.model.Resource prop) getSearchForTags(String lang) If there are a list of tags to search for given the supplied lang tag, then the list is returned; otherwise, a list of just the supplied lang tagstatic intstatic booleanstatic booleanusingSearchFor(String lang)
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getLocalizedAnalyzer
-
addAnalyzer
-
getDefinedAnalyzer
public static org.apache.lucene.analysis.Analyzer getDefinedAnalyzer(org.apache.jena.rdf.model.Resource key) -
defineAnalyzer
public static void defineAnalyzer(org.apache.jena.rdf.model.Resource key, org.apache.lucene.analysis.Analyzer analyzer) -
getIndexAnalyzer
-
addIndexAnalyzer
-
usingIndexAnalyzers
public static boolean usingIndexAnalyzers() -
addPropsList
public static void addPropsList(org.apache.jena.rdf.model.Resource prop, List<org.apache.jena.rdf.model.Resource> list) -
getPropList
public static List<org.apache.jena.rdf.model.Resource> getPropList(org.apache.jena.rdf.model.Resource prop) -
sizePropsList
public static int sizePropsList() -
usingSearchFor
-
getSearchForTags
If there are a list of tags to search for given the supplied lang tag, then the list is returned; otherwise, a list of just the supplied lang tag- Parameters:
lang-- Returns:
- possibly empty list of tags to search for
-
addSearchForTags
-
getAuxIndexes
-
addAuxIndexes
-
finishCaching
public static void finishCaching() -
getEffectiveLang
-