Is it possible to 'group' search logic in the
craft.entries.search query? I need to do the following:
[a OR b OR c] AND [d OR e] AND [x OR y OR z]
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.Sign up to join this community
Thanks Robin, that answers my question. I also emailed Craft support – posting Brad's response below for posterity, which suggests other ways to approach this.
Robin is correct here: Search query: grouping and merging multiple searches
If you're looking for more complex, you might be able to pull it off with a plugin that listened to the onBuildElementsQuery event (https://craftcms.com/docs/plugins/events-reference#elements-onBuildElementsQuery) or possibly through an external search service like Algolia. There's a Craft integration for the latter here: https://transition.topshelfcraft.com/software/craft/searchplus/overview