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 2012/01/27 08:36:01 UTC

[Solr Wiki] Update of "FunctionQuery" by DavidSmiley

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: