On Fri, Jan 9, 2009 at 4:47 PM, Gargate, Siddharth <sgarg...@ptc.com> wrote:

> But what you were suggesting is that I
> should call commit only after some time or after few number of
> documents, right?


Correct. If you are using Solrj client for indexing data, you can use the
SolrServer#add(Collection<SolrInputDocument> docs) method to add multiple
documents in a batch and then call commit.

But unless you really need to commit in between adding documents, committing
at the very end of the indexing process usually gives the best performance.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to