How can I implement this with the latest Elasticsearch C# client version, v8?

How can I implement this with the latest Elasticsearch C# client version, v8?

var searchResponse = elasticClient
.Search<Case>(s => s
.Index(IndexNames.Cases)
.Query(q => q
.Match(m => m
.Field("Description")
.Query(queryParameterDto.SearchString)
)
||
q.Match(m => m
.Field("Title")
.Query(queryParameterDto.SearchString)
)
&& q
.Match(m => m
.Field(f => f.Title)
.Query("Cam")
) && q
.DateRange(r => r
.Field(f => f.IncidentOn)
.GreaterThanOrEquals(new DateTime(2017, 01, 01))
.LessThan(new DateTime(2018, 01, 01))```

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.