Current behavior
When using the ContentQuery properties Filter and Search only the search argument is used. Filters are ignored.
Expected behavior
The search and filters are both applied to filter the data. This also works when applying filters and search from the Squidex Admin/Editor UI.
Version
Squidex.ClientLibrary
Version: 9.0
Possible cause
The following code in the Squidex.ClientLibrary prevents the two to be use together.
else if … this. Filters
// class ContentQuery
internal string ToQuery(bool supportsSearch)
{
...
if (!string.IsNullOrWhiteSpace(this.Search))
{
if (!supportsSearch)
throw new NotSupportedException("Full text search is not supported.");
values.Add("$search=\"" + this.Search + "\"");
}
else if (!string.IsNullOrWhiteSpace(this.Filter))
values.Add("$filter=" + this.Filter);
...
}