Skip to content

Instantly share code, notes, and snippets.

@khalidabuhakmeh
Created December 28, 2016 21:38
Show Gist options
  • Save khalidabuhakmeh/499acabf161ef0d797c2479bf641c90b to your computer and use it in GitHub Desktop.
Save khalidabuhakmeh/499acabf161ef0d797c2479bf641c90b to your computer and use it in GitHub Desktop.
public class Document {
public string Id {get;set;}
public string Site {get;set;}
}
I would like the value of `Site` to be the document `_type`. How do I accomplish that via inference in NEST? `InferMappingFor<T>`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment