You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the object initializer syntax, any property that accepts IEnumerable<QueryContainer> (for example, BoolQuery.Must) is serialized with a null value per conditionless query.
Excerpt of an example query:
var request = new SearchRequest
{
Query = new BoolQuery
{
Must = new List<QueryContainer>
{
new QueryStringQuery
{
Query = someNotNullNotEmptyString
},
new QueryStringQuery
{
Query = someNullString
},
new QueryStringQuery
{
Query = someEmptyString
},
}
}
};