java.lang.Object
org.apache.jena.query.text.analyzer.Util
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAnalyzer
(String lang, org.apache.lucene.analysis.Analyzer analyzer) static void
addAuxIndexes
(String tag, List<String> tags) static void
addIndexAnalyzer
(String tag, org.apache.lucene.analysis.Analyzer analyzer) static void
addPropsList
(org.apache.jena.rdf.model.Resource prop, List<org.apache.jena.rdf.model.Resource> list) static void
addSearchForTags
(String tag, List<String> tags) static void
defineAnalyzer
(org.apache.jena.rdf.model.Resource key, org.apache.lucene.analysis.Analyzer analyzer) static void
getAuxIndexes
(String tag) static org.apache.lucene.analysis.Analyzer
getDefinedAnalyzer
(org.apache.jena.rdf.model.Resource key) static String
getEffectiveLang
(String docLang, String queryLang) static org.apache.lucene.analysis.Analyzer
getIndexAnalyzer
(String tag) static org.apache.lucene.analysis.Analyzer
getLocalizedAnalyzer
(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 int
static boolean
static boolean
usingSearchFor
(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
-