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 GrantIngersoll.
http://wiki.apache.org/solr/FunctionQuery?action=diff&rev1=50&rev2=51

--------------------------------------------------

  
http://localhost:8983/solr/select/?q=boxname:findbox+_val_:"div(weight,product(product(x,y),z))"&fl=boxname,x,y,z,weight,score
  }}}
  
+ = Single Valued vs. Multi Valued Functions =
+ 
+ <!> WARNING: Expert <!>
+ 
+ Until [[Solr1.5]], all functions were single valued.  Since [[Solr1.5]], it 
is now possible to write multivalued functions by overriding the appropriate 
!DocValues methods (the ones that take in an array of the appropriate type, 
i.e. doubleVal(int doc, double[] vals).  This is often useful when working with 
[[http://wiki.apache.org/solr/SchemaXml#Poly_Field_Types|Poly Fields]].  Note, 
however, that these multivalued functions must be aggregated up into a single 
value function, as the !FunctionQuery itself does not support them.
+ 
+ See https://issues.apache.org/jira/browse/SOLR-1131
+ 

Reply via email to