|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.request.DisMaxRequestHandler
public class DisMaxRequestHandler
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
fieldA^1.0 fieldB^2.2
".
SolrPluginUtils.setMinShouldMatch
for full details.
fieldA^1.0 fieldB^2.2
".
funcA(arg1,arg2)^1.2
funcB(arg3,arg4)^2.2
". NOTE: Whitespace is not allowed
in the function arguments.
The following options are only available as request params...
:TODO: document facet param support :TODO: make bf,pf,qf multival params now that SolrParams supports them
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean |
---|
SolrInfoMBean.Category |
Constructor Summary | |
---|---|
DisMaxRequestHandler()
|
Method Summary | |
---|---|
SolrInfoMBean.Category |
getCategory()
Purpose of this Class |
String |
getDescription()
Simple one or two line description |
URL[] |
getDocs()
Documentation URL list. |
protected NamedList |
getFacetInfo(SolrQueryRequest req,
SolrQueryResponse rsp,
DocSet mainSet)
Fetches information about Facets for this request. |
String |
getName()
Simple common usage name, e.g. |
String |
getSource()
CVS Source, SVN Source, etc |
String |
getSourceId()
CVS Id, SVN Id, etc |
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via the Solr Administration interface. |
String |
getVersion()
Simple common usage version, e.g. |
void |
handleRequest(SolrQueryRequest req,
SolrQueryResponse rsp)
Handles a query request, this method must be thread safe. |
void |
init(NamedList args)
sets the default variables for any usefull info it finds in the config if a config option is not inthe format expected, logs an warning and ignores it.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisMaxRequestHandler()
Method Detail |
---|
public URL[] getDocs()
SolrInfoMBean
Suggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs
in interface SolrInfoMBean
public String getName()
SolrInfoMBean
getName
in interface SolrInfoMBean
public NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.
getStatistics
in interface SolrInfoMBean
public String getVersion()
SolrInfoMBean
getVersion
in interface SolrInfoMBean
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
public SolrInfoMBean.Category getCategory()
SolrInfoMBean
getCategory
in interface SolrInfoMBean
public String getSourceId()
SolrInfoMBean
getSourceId
in interface SolrInfoMBean
public String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
public void init(NamedList args)
init
in interface SolrRequestHandler
public void handleRequest(SolrQueryRequest req, SolrQueryResponse rsp)
SolrRequestHandler
Information about the request may be obtained from req
and
response information may be set using rsp
.
There are no mandatory actions that handleRequest must perform. An empty handleRequest implementation would fulfill all interface obligations.
handleRequest
in interface SolrRequestHandler
protected NamedList getFacetInfo(SolrQueryRequest req, SolrQueryResponse rsp, DocSet mainSet)
SimpleFacets.getFacetCounts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |