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 java.lang.String ALTQ
          Alternate query (expressed in Solr QuerySyntax) to use if main query (q) is empty
 java.lang.String bf
          Deprecated. - use explicit default with SolrParams.get
static java.lang.String BF
          query and init param for boosting functions
 java.lang.String bq
          Deprecated. - use explicit default with SolrParams.get
static java.lang.String BQ
          query and init param for boosting query
 java.lang.String fq
          Deprecated. - use explicit default with SolrParams.get
static java.lang.String FQ
          Deprecated. use SolrParams.FQ or SolrPluginUtils.parseFilterQueries
static java.lang.String GEN
          query and init param for field list
 java.lang.String mm
          Deprecated. - use explicit default with SolrParams.get
static java.lang.String MM
          query and init param for MinShouldMatch specification
 java.lang.String pf
          Deprecated. - use explicit default with SolrParams.get
static java.lang.String PF
          query and init param for phrase boost fields
static java.lang.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
 java.lang.String qf
          Deprecated. - use explicit default with SolrParams.get
static java.lang.String QF
          query and init param for query fields
static java.lang.String QS
          query and init param for phrase Slop value in phrases explicitly included in the user's query string ( in qf fields)
static java.lang.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 java.lang.String TIE
query and init param for tiebreaker value


QF

public static java.lang.String QF
query and init param for query fields


PF

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


MM

public static java.lang.String MM
query and init param for MinShouldMatch specification


PS

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


QS

public static java.lang.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 java.lang.String BQ
query and init param for boosting query


BF

public static java.lang.String BF
query and init param for boosting functions


ALTQ

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


FQ

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


GEN

public static java.lang.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 java.lang.String qf
Deprecated. - use explicit default with SolrParams.get
the default query fields to be used


pf

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


mm

public java.lang.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 java.lang.String bq
Deprecated. - use explicit default with SolrParams.get
the default boosting query to be used


bf

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


fq

public java.lang.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 - 2008 The Apache Software Foundation