org.apache.solr.util
Class DisMaxParams

java.lang.Object
  extended by org.apache.solr.util.CommonParams
      extended by org.apache.solr.util.DisMaxParams

public class DisMaxParams
extends CommonParams

A collection of params used in DisMaxRequestHandler, both for Plugin initialization and for Requests.


Field Summary
static String ALTQ
          Alternate query (expressed in Solr QuerySyntax) to use if main query (q) is empty
 String bf
          Deprecated. - use explicit default with SolrParams.get
static String BF
          query and init param for boosting functions
 String bq
          Deprecated. - use explicit default with SolrParams.get
static String BQ
          query and init param for boosting query
 String fq
          Deprecated. - use explicit default with SolrParams.get
static String FQ
          Deprecated. use SolrParams.FQ or SolrPluginUtils.parseFilterQueries
static String GEN
          query and init param for field list
 String mm
          Deprecated. - use explicit default with SolrParams.get
static String MM
          query and init param for MinShouldMatch specification
 String pf
          Deprecated. - use explicit default with SolrParams.get
static String PF
          query and init param for phrase boost fields
static String PS
          query and init param for Phrase Slop value in phrase boost query (in pf fields)
 int pslop
          Deprecated. - use explicit default with SolrParams.getInt
 String qf
          Deprecated. - use explicit default with SolrParams.get
static String QF
          query and init param for query fields
static String QS
          query and init param for phrase Slop value in phrases explicitly included in the user's query string ( in qf fields)
static String TIE
          query and init param for tiebreaker value
 float tiebreaker
          Deprecated. - use explicit default with SolrParams.getFloat
 
Fields inherited from class org.apache.solr.util.CommonParams
DEBUG_QUERY, debugQuery, df, DF, EXPLAIN_OTHER, explainOther, fl, FL, highlight, highlightFields, highlightFormatterClass, maxSnippets
 
Constructor Summary
DisMaxParams()
           
 
Method Summary
 void setValues(NamedList args)
          Deprecated. use SolrParams.toSolrParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIE

public static String TIE
query and init param for tiebreaker value


QF

public static String QF
query and init param for query fields


PF

public static String PF
query and init param for phrase boost fields


MM

public static String MM
query and init param for MinShouldMatch specification


PS

public static String PS
query and init param for Phrase Slop value in phrase boost query (in pf fields)


QS

public static String QS
query and init param for phrase Slop value in phrases explicitly included in the user's query string ( in qf fields)


BQ

public static String BQ
query and init param for boosting query


BF

public static String BF
query and init param for boosting functions


ALTQ

public static String ALTQ
Alternate query (expressed in Solr QuerySyntax) to use if main query (q) is empty


FQ

public static String FQ
Deprecated. use SolrParams.FQ or SolrPluginUtils.parseFilterQueries
query and init param for filtering query


GEN

public static String GEN
query and init param for field list


tiebreaker

public float tiebreaker
Deprecated. - use explicit default with SolrParams.getFloat
the default tie breaker to use in DisjunctionMaxQueries


qf

public String qf
Deprecated. - use explicit default with SolrParams.get
the default query fields to be used


pf

public String pf
Deprecated. - use explicit default with SolrParams.get
the default phrase boosting fields to be used


mm

public String mm
Deprecated. - use explicit default with SolrParams.get
the default min should match to be used


pslop

public int pslop
Deprecated. - use explicit default with SolrParams.getInt
the default phrase slop to be used


bq

public String bq
Deprecated. - use explicit default with SolrParams.get
the default boosting query to be used


bf

public String bf
Deprecated. - use explicit default with SolrParams.get
the default boosting functions to be used


fq

public String fq
Deprecated. - use explicit default with SolrParams.get
the default filtering query to be used

Constructor Detail

DisMaxParams

public DisMaxParams()
Method Detail

setValues

public void setValues(NamedList args)
Deprecated. use SolrParams.toSolrParams

Sets the params using values from a NamedList, usefull in the init method for your handler.

If any param is not of the expected type, a severe error is logged,and the param is skipped.

If any param is not of in the NamedList, it is skipped and the old value is left alone.

Overrides:
setValues in class CommonParams


Copyright © 2006 - 2009 The Apache Software Foundation