BulkRequestBuilder is slow

You must wait for delete expunges if you want to be sure each delete has
been executed.

     OptimizeRequest request = new 

OptimizeRequest().onlyExpungeDeletes(true).waitForMerge(true);
client.admin().indices().optimize(request).actionGet();

Note, I strongly recommend against using this feature for each document
you delete unless you know that you are destroying all the performance
ES can offer.

Jörg

Am 03.04.13 11:03, schrieb Muzammil A:

Hi Jorg Prante,

You mean than I need to do the following coding

OptimizeRequest optimize = new OptimizeRequest();
optimize.waitForMerge(false);
client.admin().indices().optimize(optimize);

I just want to know that I am doing it right.

On Wed, Apr 3, 2013 at 1:16 PM, Jörg Prante <joergprante@gmail.com
mailto:joergprante@gmail.com> wrote:

Document deletes just mark documents as deleted until next segment
merge. To enforce visibility of deleted documents to all index
readers, you must optimize the index (to trigger a segment merge).
Note, using refresh/optimize is very harmful to performance.

Jörg

Am 03.04.13 08:28, schrieb muzammil.abdul@enhancesys.com
<mailto:muzammil.abdul@enhancesys.com>:

    Any how I had set setRefresh(true) to my bulkRequestBuilder
    after setting this I was able to search for the documents that
    I had indexed using the bulk but the the documents which I had
    deleted using the bulk remains unchanged


-- 
You received this message because you are subscribed to a topic in
the Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/n5rJuEtVQtA/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email
to elasticsearch+unsubscribe@googlegroups.com
<mailto:elasticsearch%2Bunsubscribe@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.