public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static 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(Resource prop,
List<Resource> list) |
static void |
addSearchForTags(String tag,
List<String> tags) |
static void |
defineAnalyzer(Resource key,
org.apache.lucene.analysis.Analyzer analyzer) |
static void |
finishCaching() |
static List<String> |
getAuxIndexes(String tag) |
static org.apache.lucene.analysis.Analyzer |
getDefinedAnalyzer(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<Resource> |
getPropList(Resource prop) |
static List<String> |
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 tag
|
static int |
sizePropsList() |
static boolean |
usingIndexAnalyzers() |
static boolean |
usingSearchFor(String lang) |
public static org.apache.lucene.analysis.Analyzer getLocalizedAnalyzer(String lang)
public static void addAnalyzer(String lang, org.apache.lucene.analysis.Analyzer analyzer)
public static org.apache.lucene.analysis.Analyzer getDefinedAnalyzer(Resource key)
public static void defineAnalyzer(Resource key, org.apache.lucene.analysis.Analyzer analyzer)
public static org.apache.lucene.analysis.Analyzer getIndexAnalyzer(String tag)
public static void addIndexAnalyzer(String tag, org.apache.lucene.analysis.Analyzer analyzer)
public static boolean usingIndexAnalyzers()
public static int sizePropsList()
public static boolean usingSearchFor(String lang)
public static List<String> getSearchForTags(String lang)
lang - public static void finishCaching()
Licenced under the Apache License, Version 2.0