How about transactions in elasticsearch

Hi,
I started to wonder how elasticsearch handles transaction with the shards –
is it at all possible?
Is elsaticsearch transaction-less app – and is left to the main CRUD
database to handle it?
Regards,
Janusz

--

Hi

Is elsaticsearch transaction-less app – and is left to the main CRUD

database to handle it?

IMO yes, it is up to external system to handle transactions.

As soon as you index a single document and receive response (success) then
the document can be retrieved (get by ID [1]) and once refresh [2] happens
on ES side (can be forced or happens automatically in intervals [3]) the
document can be searched by query.

Regards,
Lukas

[1] http://www.elasticsearch.org/guide/reference/api/get.html
[2]
http://www.elasticsearch.org/guide/reference/api/admin-indices-refresh.html
[3] http://www.elasticsearch.org/guide/reference/index-modules/ -> see
index.refresh_interval

--