Shalin,

Just to remember that with he is indexing more documents that he has memory
avaiable, it is a good thing to have autocommit set.

2009/1/9 Shalin Shekhar Mangar <shalinman...@gmail.com>

> 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.
>



-- 
Alexander Ramos Jardim

Reply via email to