lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Bernstein <joels...@gmail.com>
Subject Re: SolrJ and Streaming
Date Tue, 18 Apr 2017 19:23:02 GMT
paramsLoc in my last email should be params

Joel Bernstein
http://joelsolr.blogspot.com/

On Tue, Apr 18, 2017 at 3:21 PM, Joel Bernstein <joelsolr@gmail.com> wrote:

> Are you trying to send a streaming expression using SolrJ?
>
> If you are you can send the expression with the SolrStream. for example:
>
> params = new ModifiableSolrParams();
> params.set("expr", expr);
> params.set("qt", "/stream");
> SolrStream stream = new SolrStream(url, paramsLoc);
>
> try {
>
>    stream.open();
>
>    while(true) {
>
>       Tuple tuple = stream.read();
>
>       if(tuple.EOF) {
>
>           break;
>
>       }
>
>    }
>
> } finally {
>
>   stream.close();
>
> }
>
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
> On Tue, Apr 18, 2017 at 2:33 PM, Joe Obernberger <
> joseph.obernberger@gmail.com> wrote:
>
>> Hi All - any examples of using solrJ and streaming expressions
>> available?  Like calling UpdateStream from solrJ?
>>
>> Thank you!
>>
>> -Joe
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message