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 2007/07/29 13:51:03 UTC

[Solr Wiki] Trivial Update of "SolrQuerySyntax" by DanielNaber

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

The comment on the change is:
typo fix

------------------------------------------------------------------------------
  
  Differences in the Solr Query Parser include
   * Range queries {{{[a TO z]}}} and prefix queries {{{a*}}} are constant-scoring (all matching documents get an equal score).  The scoring factors tf, idf, index boost, and coord are not used.  There is no limitation on the number of terms that match (as there was in past versions of Lucene).
-    * Lucene 2.1 has also switched to use !ConstantScoreRangeQuery for it's range queries.
+    * Lucene 2.1 has also switched to use !ConstantScoreRangeQuery for its range queries.
   * A {{{*}}} may be used for either or both endpoints to specify an open-ended range query.
     * {{{field:[* TO 100]}}} finds all field values less than or equal to 100
     * {{{field:[100 TO *]}}} finds all field values greater than or equal to 100
@@ -13, +13 @@

     * Example: {{{_val_:myfield}}}
     * Example: {{{_val_:recip(rord(myfield),1,2,3)}}}
  
- 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 dates relative "NOW".  Examples...
+ 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 dates relative "NOW".  Examples:
  
     * {{{timestamp:[* TO NOW]}}}
     * {{{createdate:[1976-03-06T23:59:59.999Z TO *]}}}