There is a server Elsaticsearch with him by means of Nest .
It is necessary to get docks with identical values across the field. From the docks dug such a solution:
var result1 = await client.SearchAsync<DislocCntOtm>(x => x .Index(_dislocationSettings.IndexName) .Query(q => q.Term(map.KeyName, map.KeyValue))); Where
map.KeyName = "Id"; map.KeyValue = 131659266; It should have been: result.Hits.Count == 0 , but the search returned two docks with Id: 131659261, 131659264
How to search for full matches in the document fields?
Shl. I tried this option, the result is the same: .Query(q => q.Match(m => m.Field(map.KeyName).Query(map.KeyValue.ToString())))