org.apache.solr.search
Class FieldQParserPlugin
java.lang.Object
org.apache.solr.search.QParserPlugin
org.apache.solr.search.FieldQParserPlugin
- All Implemented Interfaces:
- NamedListInitializedPlugin
public class FieldQParserPlugin
- extends QParserPlugin
Create a field query from the input value, applying text analysis and constructing a phrase query if appropriate.
Other parameters: f
, the field
Example: {!field f=myfield}Foo Bar
creates a phrase query with "foo" followed by "bar"
if the analyzer for myfield is a text field with an analyzer that splits on whitespace and lowercases terms.
This is generally equivalent to the Lucene query parser expression myfield:"Foo Bar"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static String NAME
FieldQParserPlugin
public FieldQParserPlugin()
init
public void init(NamedList args)
createParser
public QParser createParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req)
- Description copied from class:
QParserPlugin
- return a
QParser
- Specified by:
createParser
in class QParserPlugin
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.