How to make mixed search AND & OR

Hi everyone,
I wanted to make the following query (A OR B) AND (C OR D) where A and C are searchable attributes, B and D are normal attributes (I’m using as facet filters)

Hi David, this should definitely works as outlined by our filter syntax validator:

image

Please reach out to support@algolia.com if that’s not the case, with an example query you tried and why it failed. Allow us support access to: https://www.algolia.com/account/support.

Thanks!

Just to clarify the filters will work with facet filters but as I mentioned A & C are not part of the facet filters.

Indeed, if you want to filter on string attributes they need to be declared as facets. That’s the only way. For boolean and numbers this might not be required

1 Like