You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Kaktu Chakarabati <ji...@gmail.com> on 2010/03/26 21:27:11 UTC

Making a 'isPartialResults' getter for ResponseBuilder / SolrQueryResponse

Hey,
While working with some custom query components we've came across a
situation that I thought might
be worthwhile of a small patch:

The issue is that some components in the query handling chain might want to
know whether the results
returned by the IndexSearcher are partial (e.g because of use of the
timeAllowed parameter).
After some tracing through the solr code, i noticed this is possible in a
somewhat contrived way, e.g using
rb.rsp.getResponseHeader().get("partialResults").

Does anyone else think it might be useful to add a 'isPartialResults()'
method to ResponseBuilder / QueryResponse?
this can be set e.g in ResponseBuilder.setResult()

Thanks,
-Chak