public abstract class SirenQParserPlugin
extends org.apache.solr.search.QParserPlugin
implements org.apache.lucene.analysis.util.ResourceLoaderAware
All of the following options may be configured for this plugin in the solrconfig as defaults:
KeywordQueryParser
.
Constructor and Description |
---|
SirenQParserPlugin() |
Modifier and Type | Method and Description |
---|---|
protected Properties |
getQNames() |
void |
inform(org.apache.lucene.analysis.util.ResourceLoader loader) |
void |
init(org.apache.solr.common.util.NamedList args) |
protected void |
loadQNamesFile(org.apache.lucene.analysis.util.ResourceLoader loader)
Load QNames mapping from the properties file
|
protected Properties getQNames()
public void init(org.apache.solr.common.util.NamedList args)
init
in interface org.apache.solr.util.plugin.NamedListInitializedPlugin
public void inform(org.apache.lucene.analysis.util.ResourceLoader loader) throws IOException
inform
in interface org.apache.lucene.analysis.util.ResourceLoaderAware
IOException
protected void loadQNamesFile(org.apache.lucene.analysis.util.ResourceLoader loader)
The mapping file contains lines such as:
foaf:name
will be expanded to
http://xmlns.com/foaf/0.1/name
.Copyright © 2014. All rights reserved.