Are the insert operations to elasticsearch asynchronous in nature

I am having a client node and a data node. i am using the client node to communicate to data node. My question is when i perform an insertion from client node does the program control returns to client node once the information is sent to data node over the network or is it blocked till the data is inserted and indexed on the data node.

Please help me.

If you are using the java API the answer is maybe, it depends on how you use it. In addition, even if you use the synchronous API you have to wait for a refresh for you data to be searchable. By default they happen every second.

Sent from my iPhone

On Jan 31, 2014, at 6:21 AM, sowjanya sowjanyachalla@gmail.com wrote:

I am having a client node and a data node. i am using the client node to
communicate to data node. My question is when i perform an insertion from
client node does the program control returns to client node once the
information is sent to data node over the network or is it blocked till the
data is inserted and indexed on the data node.

Please help me.

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Are-the-insert-operations-to-elasticsearch-asynchronous-in-nature-tp4048555.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1391167290884-4048555.post%40n3.nabble.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/81D2EDE3-7106-4A8B-A521-B650F8867772%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Good question and it's worth a few links :slight_smile: This link might be helpful,
look at async replication and refresh

Also look at translog

At this point you'll be confused between refresh and flush, then read this
:slight_smile:

On Sun, Feb 2, 2014 at 1:05 PM, Nik Everett nik9000@gmail.com wrote:

If you are using the java API the answer is maybe, it depends on how you
use it. In addition, even if you use the synchronous API you have to wait
for a refresh for you data to be searchable. By default they happen every
second.

Sent from my iPhone

On Jan 31, 2014, at 6:21 AM, sowjanya sowjanyachalla@gmail.com wrote:

I am having a client node and a data node. i am using the client node to
communicate to data node. My question is when i perform an insertion from
client node does the program control returns to client node once the
information is sent to data node over the network or is it blocked till
the
data is inserted and indexed on the data node.

Please help me.

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Are-the-insert-operations-to-elasticsearch-asynchronous-in-nature-tp4048555.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/1391167290884-4048555.post%40n3.nabble.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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/81D2EDE3-7106-4A8B-A521-B650F8867772%40gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAOT3TWpQp9SMSCMNmoi-dnHx0yEJrKEf9cmK03e5O%3DD5EOTp1A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.