ElasticSearch.Net icon indicating copy to clipboard operation
ElasticSearch.Net copied to clipboard

Version Exposed as an Int32 Type

Open jayramay opened this issue 10 years ago • 1 comments

While indexing documents into Elasticsearch, I can pass an external version with the document being indexed. The reason I want to do this is because I can get various versions of the same document in a span of few seconds or even quicker than that and there is no way I can control the order in which these versions get indexed.

To make sure the index always reflects latest state of the document, I thought I could use the last modified datetime stamp in the document, convert it to a sortable datetime integer (e.g. dateTime.ToString("yyyyMMddHHmmssFFF") gives me 20140427101814673) and pass it on to Elasticsearch as an external version when indexing a document.

Elasticsearch provides a very clean versioning capability that fits nicely into my requirement - the problem however is that Elasticsearch.NET limits this functionality by exposing version as an integer based type which cannot take the large numbers I am trying to pass.

jayramay avatar May 02 '14 16:05 jayramay

this project is deprecated.if you still like to use it ,you might need to hack it by yourself.

medcl avatar May 05 '14 02:05 medcl