Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The following page has been changed by HossMan:
http://wiki.apache.org/solr/StandardRequestHandler

The comment on the change is:
initial docs, not quite done

New page:
The [http://incubator.apache.org/solr/docs/api/ Standard Request Handler] is 
the default Query handler included in the standard Solr distribution.  It is 
usually registered in the solrconfig.xml with the query type "standard", and 
while it's certianly possible to reconfigure Solr so that a different handler 
is registered with that query type -- it is discouraged.  (Doing so would most 
likely confuse a great many people)

== Query Params ==

In addition to the CoreQueryParameters, the Standard Request Handler supports 
the following Query Parameters...

=== q ===

This is the only mandatory query parameter.  It must be a query parsable 
according to the [http://lucene.apache.org/java/docs/queryparsersyntax.html 
Lucene Query Parser Syntax], followed by an optional sort specification.  
Examples:

||||'''Examples'''||
||'''Query String'''||'''Meaning'''||
||`lucene`||search for "lucene" in the default field||
||`name:solr`||search for "solr" in the "name" field||
||`name:solr; price desc`||same as above, but in descending order of the 
"price" field||
||`name:solr; inStock desc price asc`||same as above, but sorted by "inStock" 
descending, then "price" ascending||

Other then the optional sort specification the only difference between how this 
query string is parsed, and hose the Lucene QueryParser works, is that by 
default, the Solr QueryParser uses constant score variations of Range and 
Prefix queries by default, so you don't need to worry about the dreaded "Too 
Many Clauses" exception.

=== start ===

This paramater is used to paginate results from a query.  When specified, it 
indicates the offset in the complete result set for the queries where the set 
of returned documents should begin. 

The default value is "`0`".

=== rows ===

This paramater is used to paginate results from a query.  When specified, it 
indicates the maximum number of documents from the complete result set to 
return to the client.

The default value is "`10`"

=== fl ===

This parameter can be used to specify a set of fields to use to limit the 
amount of information in the response.  When returning the results to the 
client, only fields in this list will be included.

This list can be specified as a space (or comma) seperated list of field names. 
 The string "`score`" can be used to indicate that the score of each document 
should be returned as a field, and the string "`*`" can be used to indicate all 
(real) fields the document has.


||||'''Examples'''||
||'''Field List'''||'''Meaning'''||
||`id name price`||Only return the "id" field and the "name" field||
||`id,name,price`||Same as above||
||`id name, price`||Same as above||
||`id score`||Return the "id" field and the score||
||`*`||Return any fields the documents have||
||`* score`||Return any fields the document has, along with the score||

/!\ :TODO: /!\ whoa ... if you specify "score" it return all fields plus score 
... is that the expected behavior?

The default value is "`*`"

=== debugQuery ===

/!\ :TODO: /!\ finish 

=== explainOther ===

/!\ :TODO: /!\ finish

Reply via email to