Created
March 8, 2022 16:28
-
-
Save awswithdotnet/e726fd225510a2c4e5e6b41958005fce to your computer and use it in GitHub Desktop.
elasticsearch DataSearch Program Partial 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var searchRequest = new SearchRequest<Vehicle>() | |
{ | |
From = 0, | |
Size = 1, | |
Query = new MatchQuery | |
{ | |
Field = Infer.Field<Vehicle>(f => f.Make), | |
Query = "BMW" | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment