[SOLVED] Use Search and Filters together is not possible via the Squidex.ClientLibrary

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: 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);


True, I will provide a fix today.

1 Like

I have fixed it yesterday and have forgotten to update the topic. Sorry for that.

No problem. Tested it today and it works now. I’m happy. Thanks!

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.