org.apache.solr.search
Class FieldQParserPlugin

java.lang.Object
  extended by org.apache.solr.search.QParserPlugin
      extended by org.apache.solr.search.FieldQParserPlugin
All Implemented Interfaces:
SolrInfoMBean, 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"


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean
SolrInfoMBean.Category
 
Field Summary
static String NAME
           
 
Fields inherited from class org.apache.solr.search.QParserPlugin
DEFAULT_QTYPE, standardPlugins
 
Constructor Summary
FieldQParserPlugin()
           
 
Method Summary
 QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
          return a QParser
 void init(NamedList args)
           
 
Methods inherited from class org.apache.solr.search.QParserPlugin
getCategory, getDescription, getDocs, getName, getSource, getStatistics, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

FieldQParserPlugin

public FieldQParserPlugin()
Method Detail

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-2014 Apache Software Foundation. All Rights Reserved.