You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Lee Carroll <le...@googlemail.com> on 2018/04/13 12:08:00 UTC
Difference between BasicResultContext and ResultContext in Response
Hi all,
I'm writing a custom response writer to output a very simple rendition of a
solr result set to clients.
In my tests I do:
h.getCore().execute(h.getCore().getRequestHandler(null),req,rsp);
which for a q=*:* request object returns a response with a BasicResultContext.
In TextResponseWriter when processing this object a comment notes, "should not
normally happen" and creates a ResultContext from the
BasicResultContext and carries
on processing. If I handle ResultContext and BasicResultContext in
my custom writer
will that be enough? Or do I need to worry about other document wrappers.
Lee C
Re: Difference between BasicResultContext and ResultContext in Response
Posted by Lee Carroll <le...@googlemail.com>.
#Ignore, mis-read the comment and its context.
On 13 April 2018 at 13:08, Lee Carroll <le...@googlemail.com> wrote:
> Hi all,
>
> I'm writing a custom response writer to output a very simple rendition of
> a solr result set to clients.
>
> In my tests I do:
>
> h.getCore().execute(h.getCore().getRequestHandler(null),req,rsp);
>
>
> which for a q=*:* request object returns a response with a BasicResultContext.
>
> In TextResponseWriter when processing this object a comment notes, "should not
>
> normally happen" and creates a ResultContext from the BasicResultContext and carries
>
> on processing. If I handle ResultContext and BasicResultContext in my custom writer
>
> will that be enough? Or do I need to worry about other document wrappers.
>
>
> Lee C
>
>
>