Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:51:01+00:00 2026-06-16T01:51:01+00:00

I am using elasticsearch and accessing it from C# through the NEST driver. I

  • 0

I am using elasticsearch and accessing it from C# through the NEST driver. I need to do some concurrency control on the documents I am adding and updating through the NEST driver. Here is a link to the corresponding elasticsearch feature, but I am unable to find any information on how to use document versioning with the NEST driver.

I attempted to set up a mapping, hoping the “_version” property would deserialize from the indexed document (without serializing), but no luck.

Has anyone been able to do what I am trying to do? Is this even possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:51:03+00:00Added an answer on June 16, 2026 at 1:51 am

    _version is a meta data attribute that you can access using result.DocumentsWithMetaData this exposes an IEnumerable<Hit<YourDto>> and Hit<YourDto>> has a .Version property.

    Elasticsearch will automatically increase the version number if none is specified.

    You can specify your own expected version when you index see the tests here:
    https://github.com/Mpdreamz/NEST/blob/master/src/Nest.Tests.Unit/Core/Versioning/VersioningTests.cs

    From the ES docs i have not been able to find a mention on how to specify the expected version on the GET and Script Update API. Will have to dive in deeper to be absolutely sure it’s not needed there.

    The op_type create mentioned on http://www.elasticsearch.org/blog/2011/02/08/versioning.html is not supported, will also get that in for the next release.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some customer documents that I want to be retrieved using ElasticSearch based
When searching some documents using elasticsearch, I'd like to see which field in the
I'm currently using the NEST ElasticSearch C# Library for interacting with ElasticSearch. My project
I'm using elasticsearch to index my documents. Is it possible to instruct it to
I have crawled some data using nutch and managed to inject it into elasticsearch.
I am trying to add documents to ElasticSearch. I have no problems using curl
I'm using ElasticSearch to index documents. My mapping is: mongodocid: { boost: 1.0, store:
I have the following documents in ElasticSearch 0.19.11, using: { title: dogs species, col_names:
I'm using ElasticSearch with Tire to index and search some ActiveRecord models, and I've
I'm using Elasticsearch, and writing my own wrapper using WebRequest since NEST (the usual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.