1. By default, it creates an index if the index does not exist. But no, it 
won't create an index if the index does not exist and the following is in 
your elsasticsearch.yml configuration:

action.auto_create_index: false

2. But did you mean: Does it create a *document* if the document does not 
exist? If so, then yes: The index action updates the document if it exists 
but creates the document if it does not exist.

The create action fails if the document already exists.

3. I deleted my first post because I realized that it didn't answer your 
question: I wasn't using prepareUpdate and actually have no experience with 
that particular API action. Sorry for any confusion I may have caused.

I hope this helps.

Brian

-- 
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/0819f28a-0417-4727-b7d1-90b5927439bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to