Most of the getValueSource calls are from a QParser (for parsing function queries), and it serves as the context for the call. At least one ValueSource needed the SolrCore, and it seemed more futureproof to just pass the QParser (can get the request from there too).
-Yonik On Fri, Jun 6, 2008 at 10:59 AM, Jonathan Ariel <[EMAIL PROTECTED]> wrote: > I think I can't really understand what QParser is meant for. > Given a field name I want to get the double representation of the value for > that field in a specific document. > Why do I need QParser in getValueSource? > > Sorry if it's a stupid question :S > > Jonathan > > On Thu, Jun 5, 2008 at 2:55 PM, Erik Hatcher <[EMAIL PROTECTED]> > wrote: > >> From itself! :) >> >> QParser: >> public static QParser getParser(String qstr, String defaultType, >> SolrQueryRequest req) >> >> >> >> >> On Jun 5, 2008, at 1:16 PM, Jonathan Ariel wrote: >> >> What is the QParser and where can I take it from? >>> >>> On Thu, Jun 5, 2008 at 2:14 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote: >>> >>> On Thu, Jun 5, 2008 at 12:55 PM, Jonathan Ariel <[EMAIL PROTECTED]> >>>> wrote: >>>> >>>>> Hi, >>>>> I am using getValueSource for my patch to give statistical info to the >>>>> facets, but it seems to be deprecated. Should I use something else? >>>>> >>>> >>>> public ValueSource getValueSource(SchemaField field, QParser parser) >>>> >>>> I'll update the javadoc. >>>> >>>> -Yonik >>>> >>>> >> >