lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "FunctionQuery" by GrantIngersoll
Date Thu, 24 Dec 2009 12:21:28 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 GrantIngersoll.


  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 [[|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 the !MultiValueSource class.
+ == Multi Valued Function Support ==
+ === toMultiVS ===
+ <!> Name is subject to change <!>
+ Takes in one or more single valued ValueSource instances and creates a multivalue source.
+ Signature: toMultiVS(x,y,z)
+ === Distances ===
+ dist(), hsine() and sqedist() can work with !MultiValueSources

View raw message