Different versions retuned with SearchResponse and GetResponse

2014-07-14 Thread Peter Webber
Hello, I am retrieving a document once via the Search API and once via the Get API (using Java). In once case if I apply getVersion() on the SearchResponse I get 2. If I apply getVersion() on the GetResponse I get 16. In many other cases the responses are widely different too. Generally the

Re: Reading and writing the same document too fast -- data loss

2014-07-12 Thread Peter Webber
Thanks for the reply. That seems like it could work. At least on the first look. But at second look: How do I know the correct version? If I add documentC, ES will return documentA, in the state before the ID from documentB was added, so I guess I also get the wrong version returned from ES

Re: Setting up indices (mappings, settings etc.)

2014-05-22 Thread Peter Webber
Hi, if anyone could comment on my code I would be very greatful. I'd like to know whether my way to set up the index is as it is intended to be. Thanks! -- You received this message because you are subscribed to the Google Groups elasticsearch group. To unsubscribe from this group and stop

Setting up indices (mappings, settings etc.)

2014-05-17 Thread Peter Webber
Hello, I am struggeling to set up my indices correctly. I have a mappings file and a settings file that I would like to apply to my indices. Through trial and error I figured out that the below code works for me. However I am really not sure whether all steps that I take are necessary. Also

Mapping for Java HashMap

2014-01-12 Thread Peter Webber
I had a look at the mapping ES created automatically for one of my indices, and found something that's not quite right: annotations : { properties : { ids : { properties : { hashMap : { properties : {