SolrQuerySyntax

Solr Query Syntax

The standard Solr Query Parser syntax is a superset of the [WWW] Lucene Query Parser syntax.

Differences From Lucene Query Parser

Differences in the Solr Query Parser include

Although not technically a Syntax difference, please note that if you use the Solr "[WWW] DateField" type, any queries on those fields (typically range queries) should use either the Complete ISO 8601 Date syntax that field supports, or the [WWW] DateMath Syntax to get relative dates. Examples:

URL Escaping Special Characters

Please note that many characters in the Solr Query Syntax (most notable the plus sign: "+") are special characters in URLs, so when constructing request URLs manually, you must properly URL-Encode these characters.

                                     q=  +popularity:[10   TO   *]     +section:0
   http://localhost:8983/solr/select?q=%2Bpopularity:[10%20TO%20*]%20%2Bsection:0

last edited 2008-08-01 04:23:39 by YonikSeeley