@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface ESRouting
用于routing shard
Updateedit
When using update action retry_on_conflict can be used as field in the action itself (not in the extra payload line), to specify how many times an update should be retried in the case of a version conflict.
The update action payload, supports the following options: doc (partial document), upsert, doc_as_upsert, script, params (for script), lang (for script) and _source. See update documentation for details on the options. Example with update actions: