org.apache.solr.search
Class DisMaxQParserPlugin

java.lang.Object
  extended by org.apache.solr.search.QParserPlugin
      extended by org.apache.solr.search.DisMaxQParserPlugin
All Implemented Interfaces:
SolrInfoMBean, NamedListInitializedPlugin

public class DisMaxQParserPlugin
extends QParserPlugin

Create a dismax query from the input value.
localParams are checked before global request params.
Example: {!dismax qf='myfield mytitle^2'}foo creates a dismax query across across myfield and mytitle, with a higher weight on mytitle.

A Generic query plugin designed to be given a simple query expression from a user, which it will then query against a variety of pre-configured fields, in a variety of ways, using BooleanQueries, DisjunctionMaxQueries, and PhraseQueries.

All of the following options may be configured for this plugin in the solrconfig as defaults, and may be overriden as request parameters

The following options are only available as request params...


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
DisMaxQParserPlugin()
           
 
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 String NAME
Constructor Detail

DisMaxQParserPlugin

public DisMaxQParserPlugin()
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-2013 Apache Software Foundation. All Rights Reserved.