Re: Copying the request parameters to Solr's response

2006-10-24 Thread Yonik Seeley
On 10/24/06, Bertrand Delacretaz [EMAIL PROTECTED] wrote: 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:

Re: Copying the request parameters to Solr's response

2006-10-24 Thread Yonik Seeley
On 10/24/06, Bertrand Delacretaz [EMAIL PROTECTED] wrote: responseHeader lst name=queryParameters str name=qauthor:Leonardo/str str name=start24/str str name=rows12/str What do people think... should this (optionally) go under responseHeader, to be added by the

Re: Copying the request parameters to Solr's response

2006-10-24 Thread Bertrand Delacretaz
On 10/24/06, Yonik Seeley [EMAIL PROTECTED] wrote: ...I imagine this would just be for explicitly passed parameters?... I think so, the defaults would be re-applied anyway, if the client makes another request with the same parameters. -Bertrand

Re: Copying the request parameters to Solr's response

2006-10-24 Thread Walter Underwood
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,

[jira] Created: (SOLR-59) Copy request parameters to Solr's response

2006-10-24 Thread Bertrand Delacretaz (JIRA)
Copy request parameters to Solr's response -- Key: SOLR-59 URL: http://issues.apache.org/jira/browse/SOLR-59 Project: Solr Issue Type: Improvement Reporter: Bertrand Delacretaz This

[jira] Updated: (SOLR-59) Copy request parameters to Solr's response

2006-10-24 Thread Bertrand Delacretaz (JIRA)
[ http://issues.apache.org/jira/browse/SOLR-59?page=all ] Bertrand Delacretaz updated SOLR-59: Attachment: SOLR-59-20061024.patch Copy request parameters to Solr's response -- Key: SOLR-59

Re: Copying the request parameters to Solr's response

2006-10-24 Thread Bertrand Delacretaz
On 10/24/06, Walter Underwood [EMAIL PROTECTED] wrote: ...The defaults can change, especially if the client saves results. If possible, you want to return a full context for the results... It wouldn't cost much anyway, so I think you're right that this is useful. For now, I have uploaded a

Re: Re: Copying the request parameters to Solr's response

2006-10-24 Thread Mike Klaas
On 10/24/06, Walter Underwood [EMAIL PROTECTED] wrote: The defaults can change, especially if the client saves results. If possible, you want to return a full context for the results. Perhaps, but the defaults are an ever-expanding list of params and usually much larger than the provided

Re: Re: Copying the request parameters to Solr's response

2006-10-24 Thread Yonik Seeley
On 10/24/06, Mike Klaas [EMAIL PROTECTED] wrote: Perhaps, but the defaults are an ever-expanding list of params and usually much larger than the provided params. echoParams={false/explicit/all} +1 all will be very useful for debugging too. -Yonik

Re: Copying the request parameters to Solr's response

2006-10-24 Thread Chris Hostetter
: What do people think... should this (optionally) go under : responseHeader, to be added by the ResponseWriter when it sees the : flag to do so, : OR : Should it be added in the response body, at the same level as : highlighting info, faceting info, etc. I think it should be done by the