Returning the query parameters is really useful. I'm not sure it
needs to be optional, they are small and options multiply the test
cases.

It can even be useful to return the values of the defaults.

All those go into the key for any client side caching, for example.

wunder

On 10/24/06 1:55 AM, "Erik Hatcher" <[EMAIL PROTECTED]> wrote:

> I think its a good idea, but it probably should be made optional.
> Clients can keep track of the state themselves, and keeping the
> response size as small as possible is valuable.  But it would be
> helpful in some situations for the client to get the original query
> context sent back too.
> 
> Erik
> 
> 
> On Oct 24, 2006, at 4:20 AM, Bertrand Delacretaz wrote:
> 
>> Hi,
>> 
>> I need to implement paging of Solr result sets, and (unless I have
>> overlooked something that already exists) it would be useful to copy
>> the request parameters to the output.
>> 
>> I'm thinking of adding something like this to the XML output:
>> 
>>  <responseHeader>
>>      <lst name="queryParameters">
>>        <str name="q">author:Leonardo</str>
>>        <str name="start">24</str>
>>        <str name="rows">12</str>
>>   etc...
>> 
>> I don't think the SolrParams class provides an Iterator to retrieve
>> all parameters, I'll add one to implement this.
>> 
>> WDYT?
>> 
>> -Bertrand
> 

Reply via email to