There is a near-realtime aspect to ES. What this means is by default, 
documents are searchable within 1 second (refresh interval) after they are 
indexed. You may index a document and explicitly refresh it immediately in 
which case, you can search for it immediately. For example:

client.prepareIndex("index", "type1").setSource(doc).setId("1").
*setRefresh(true)*.execute().actionGet();


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a2d0a8f0-f1c1-4f88-8794-0417de11c60c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to