lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: getValueSource deprecated!
Date Fri, 06 Jun 2008 15:45:49 GMT
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 <ionathan@gmail.com> 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 <erik@ehatchersolutions.com>
> 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 <yonik@apache.org> wrote:
>>>
>>>  On Thu, Jun 5, 2008 at 12:55 PM, Jonathan Ariel <ionathan@gmail.com>
>>>> 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
>>>>
>>>>
>>
>

Mime
View raw message