Not sure I fully understand the use case but AFAIK you can not keep the same 
version.

If needed, you can try to manage version by yourself using external versioning: 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html#index-versioning

Note sure it helps though.

-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 17 janvier 2014 at 14:13:19, joa (joafeldm...@gmail.com) a écrit:

Is it possible to disable the increment of the version counter on some update 
operations?

I've a views counter which is updated whenever user "opens" a file in ma app. 
 body: { script: 'ctx._source.views += 1',}

I don't want this to affect the version number, cause when some other user is 
doing updates on other document attributes, updates could not be saved due to 
version conflict.
On the other hand I'd like to use the versioning feature to make sure multiple 
users are overriding their changes. (except from the views field)

Thanks, Joa

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ea2893c7-464e-4de3-ac5a-01520eb293dd%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.52d9456f.4f4ef005.dc5%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to