lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "FunctionQuery" by DavidSmiley
Date Fri, 27 Jan 2012 07:36:01 GMT
Dear Wiki user,

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

The "FunctionQuery" page has been changed by DavidSmiley:
http://wiki.apache.org/solr/FunctionQuery?action=diff&rev1=78&rev2=79

Comment:
fieldvalue() doesn't exist, field() does.  (checked against trunk)

   . Signature:  literal(value), "value", 'value'
   . Example:  'foo', literal("this is a literal")
  
- == fieldvalue ==
+ == field ==
  This function returns the numeric field value of an indexed field with a maximum of one
value per document (not multiValued).  The syntax is simply the field name by itself.  0 is
returned for documents without a value in the field.
  
-  . Example Syntax: '''myFloatField'''
+  . Example Syntax: '''myFloatField''' or '''field(myFloatField)'''
   . SolrQuerySyntax Example: '''_val_:myFloatField'''
  
  For non-numeric fields, fields are still evaluated to a numeric value. How this works depends
on the field type:

Mime
View raw message