On Dec 24, 2009, at 5:11 PM, Yonik Seeley wrote: > I've noticed that the docs for geo related functions have introduced > the notion of ValueSource. That's at the Java level, and in the past > I've tried to keep http://wiki.apache.org/solr/FunctionQuery > completely away from that. >
Feel free to reword into something that describes aggregating together multiple of these "thingies" into a single multi-"thingy". > > > On Thu, Dec 24, 2009 at 7:21 AM, Apache Wiki <wikidi...@apache.org> wrote: >> 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=51&rev2=52 >> >> -------------------------------------------------- >> >> >> 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 the !MultiValueSource class. >> + >> See https://issues.apache.org/jira/browse/SOLR-1131 >> >> + == 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 >> + >> -------------------------- Grant Ingersoll http://www.lucidimagination.com/ Search the Lucene ecosystem using Solr/Lucene: http://www.lucidimagination.com/search