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/08/10 02:50:33 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:
negative queries

------------------------------------------------------------------------------
     * {{{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
     * {{{field:[* TO *]}}} matches all documents with the field
+  * Pure negative queries (all clauses prohibited) are allowed.
+    * {{{-inStock:false}}} finds all field values where inStock is not false
+    * {{{-field:[* TO *]}}} finds all documents without a value for field
   * A hook into [http://lucene.apache.org/solr/api/org/apache/solr/search/function/FunctionQuery.html FunctionQuery] via _val_:[http://lucene.apache.org/solr/api/org/apache/solr/search/QueryParsing.html#parseFunction FunctionQuerySyntax]
     * Example: {{{_val_:myfield}}}
     * Example: {{{_val_:recip(rord(myfield),1,2,3)}}}