How to make mixed search AND & OR

#1

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)

#2

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

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!

#3

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

#4

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