I will have a look. A note on your usage of XContentBuilder, when using XContentFactory#jsonBuilder, a cached version is returned, and it is expected that you will pass hte result to an API before you call it again on the same thread. So, in your case, create and add it directly to a BulkRequestBuilder.
I have just added safeJsonBuilder which will return one that is not cached per thread, but you should use the above.
Also, scrolling is not the best way to reindex the data, as it can get pretty expensive as you page through the hit list. I am planning to add a "scan" type search that will not incur this overhead (but will also do no sorting).
On Tuesday, February 8, 2011 at 10:29 PM, Karussell wrote:
the problem does not occur for
but does for shards>1
On 8 Feb., 21:27, Karussell tableyourt...@googlemail.com wrote:
I simply want a functionality to reindex my docs currently indexed.
Has someone some code for this ?
There is a problem either in my code or in ES when doing some
'overwriting' updates and then scrolling. Please see this out-of-the-
box runnable gist:
Look at 'showStrangeBehaviour' and set it to true. Why are not all 200