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