I have a basic Elasticsearch query that looks like this
POST /fruit/_search
{"query":{"term":{"Name":"banana"}}}
I get result back, no problems when I run in sense.
So I try to do this in elasticsearch.net
var requestBody = new { query = new { term = new { Name = "banana" } } };
var result = client.Search<string>("fruit", requestBody);
And I get no results back. If I just have a search body with new {} then I get hits, but not filtered.
What am I doing wrong?