You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/03/05 22:51:42 UTC

[Solr Wiki] Update of "SolrQuerySyntax" by YonikSeeley

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 YonikSeeley:
http://wiki.apache.org/solr/SolrQuerySyntax

The comment on the change is:
document _query_ magic string

------------------------------------------------------------------------------
   * A hook into FunctionQuery syntax.  Quotes will be necessary to encapsulate the function when it includes parentheses.
     * Example: {{{_val_:myfield}}}
     * Example: {{{_val_:"recip(rord(myfield),1,2,3)"}}}
+  * Nested query support for any type of query parser (via QParserPlugin).  Quotes will often be necessary to encapsulate the nested query if it contains reserved characters.
+    * Example: {{{_query_:"{!dismax qf=myfield}how now brown cow"}}}
  
  Although not technically a Syntax difference, please note that if you use the Solr "[http://lucene.apache.org/solr/api/org/apache/solr/schema/DateField.html DateField]" type, any queries on those fields (typically range queries) should use either the Complete ISO 8601 Date syntax that field supports, or the [http://lucene.apache.org/solr/api/org/apache/solr/util/DateMathParser.html DateMath] Syntax to get relative dates.  Examples: