public class AnalyzerConfigReader extends Object
Code taken from FieldTypePluginLoader
and adapted for the SIREn's
use case.
Modifier and Type | Field and Description |
---|---|
static String |
LUCENE_MATCH_VERSION_PARAM |
Constructor and Description |
---|
AnalyzerConfigReader() |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.lucene.analysis.Analyzer |
readAnalyzer(Node node,
org.apache.solr.core.SolrResourceLoader loader,
org.apache.lucene.util.Version luceneMatchVersion)
Read an analyzer definition and instantiate an
Analyzer object. |
public static final String LUCENE_MATCH_VERSION_PARAM
protected static org.apache.lucene.analysis.Analyzer readAnalyzer(Node node, org.apache.solr.core.SolrResourceLoader loader, org.apache.lucene.util.Version luceneMatchVersion) throws XPathExpressionException
Analyzer
object.
Code taken from IndexSchema#readAnalyzer()
node
- An analyzer node from the config fileXPathExpressionException
- If an XPath expression cannot be evaluatedCopyright © 2014. All rights reserved.