lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Potter <thelabd...@gmail.com>
Subject Re: Example of posting to /stream in SolrJ?
Date Mon, 01 Aug 2016 22:10:41 GMT
Sorry I was the one that initiated the cross-post ;-) Thanks for the
pointer, works great!



On Tue, Jul 26, 2016 at 3:32 PM, Joel Bernstein <joelsolr@gmail.com> wrote:
> I posted this also to another thread, but I'll cross post to this ticket:
>
> Take a look at org.apache.solr.client.solrj.io.sql.
> StatementImpl.constructStream()
>
> This uses a SolrStream to connect to the /sql handler. You can use the same
> approach to send a request to the /stream handler just by changing the
> parameters. Then you can open and read the SolrStream.
>
>
>
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
> On Tue, Jul 26, 2016 at 3:58 PM, Timothy Potter <thelabdude@gmail.com>
> wrote:
>
>> Does anyone have an example of just POST'ing a streaming expression to
>> the /stream handler from SolrJ client code? i.e. I don't want to parse
>> and execute the streaming expression on the client side, rather, I
>> want to post the expression to the server side.
>>
>> Currently, my client code is a big copy and paste of the /stream
>> request handler, but I'd rather not do that. Specifically, I wasn't
>> able to figure out how to parse the tuple
>> stream coming back using SolrJ code if I just post the expression to
>> /stream.
>>
>> Thanks.
>>

Mime
View raw message