Closed
Description
ICountResponse response = new ElasticClient(SearchSettings).Count<MediaStreamEntry>(
new[] { "StreamEntry" },
x => x.Bool(
b => b.Must(x.Term(f => f.StreamId, streamId.ToString())
, x.Term(f => f.ApprovalSettings.Approved, approved)
)));
Is generating:
{
"term": {
"approval_settings.approved": {
"value": true
}
},
"bool": {
"must": [
{
"term": {
"stream_id": {
"value": "8d00cf65-bf84-4035-9adb-695b1366304c"
}
}
},
{
"term": {
"approval_settings.approved": {
"value": true
}
}
}
]
}
}
When the expected result is just the bool query with the two terms.
This is on the latest version... any workarounds?
Metadata
Metadata
Assignees
Labels
No labels