Writing Elasticsearch Nest Bool query with Must Field value
Simply replace .Value("fake")
with .Query("fake")
. As a side note, you can siplify .Field(new Field("title"))
with .Field("title")
.
Hope that helps.
Simply replace .Value("fake")
with .Query("fake")
. As a side note, you can siplify .Field(new Field("title"))
with .Field("title")
.
Hope that helps.