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 Marc Sturlese <ma...@gmail.com> on 2009/04/16 00:15:04 UTC

StreamingUpdateSolrServer and DIH

Hey there,
I have been reading about StreamingUpdateSolrServer but can't catch exactly
how it works:

More efficient index construction over http with solrj. If your doing it,
this is a fantastic performance improvement.

Adding a StreamingUpdateSolrServer that writes update commands to an open
HTTP connection. If you are using solrj for bulk update requests you should
consider switching to this implementation. However, note that the error
handling is not immediate as it is with the standard SolrServer.

Is there any way to use it in DataImportHandler?
Thanks in advance
-- 
View this message in context: http://www.nabble.com/StreamingUpdateSolrServer-and-DIH-tp23068057p23068057.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: StreamingUpdateSolrServer and DIH

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
On Thu, Apr 16, 2009 at 3:45 AM, Marc Sturlese <ma...@gmail.com> wrote:
>
> Hey there,
> I have been reading about StreamingUpdateSolrServer but can't catch exactly
> how it works:
>
> More efficient index construction over http with solrj. If your doing it,
> this is a fantastic performance improvement.
StreamingUpdateSolrServer tries to use optimize use of http connection
by posting multiple <add> commands in the  same request. It also
allows you to do the same task in multiple threads.
>
> Adding a StreamingUpdateSolrServer that writes update commands to an open
> HTTP connection. If you are using solrj for bulk update requests you should
> consider switching to this implementation. However, note that the error
> handling is not immediate as it is with the standard SolrServer.
yeah true. CommonsHttpSolrServer has a add(Iterator<SolrInptDocument>)
method which is efficient (but does the update in the calling thread)
and you get to know about errors immedietly.
>
> Is there any way to use it in DataImportHandler?
DIH and StreamingUpdateSolrServer?
No . I cannot imagine a way
> Thanks in advance
> --
> View this message in context: http://www.nabble.com/StreamingUpdateSolrServer-and-DIH-tp23068057p23068057.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
--Noble Paul