Hello Joe, thanks for your question.
If you are looking to build a facetted/filtered search solution, Meilisearch and Scry Search are a perfect fit for you. Meilisearch supports facetted search out of the box, and Scry Search has the filters you need to pull data from other sources (like the plugins you mentioned), and ship it off to Meilisearch to filter your searches.
If I understand what you are trying to do here correctly, here is how you would go about doing it:
- Install the plugin, set up a Meilisearch instance (more on this later), connect your Meilisearch instance to the Scry Search plugin, and index your desired post types.
- In the latest version of our plugin, you can configure filterable attributes on an index. Check the boxes next to the attributes you want to be able to filter on in the menu revealed when you click “Configure Index”. Then, save the index settings. Make sure you do this for all post types you want to search.
- Use the
scry_ms_multi_search_query hook (docs) to attach your filters from the other plugin to the Meilisearch query. In your callback retrieve your filters from FacetWP or Bricks Builder, and format them in a way compatible with Meilisearch as per the Meilisearch filter expression docs and the multi-search docs. You can use the $search_query->setFilter([$filters_string]); Please let me know if you need help with this.
After doing this, you should be able to run filtered search across multiple indexes using Meilisearch and the Scry Search plugin.
If you don’t like the idea of getting into the weeds of the code, we also plan to release a prebuilt ui element in the next few weeks that users can use to filter their searches, without any plugins like FacetWP required. Would you like if I alerted you when that launches in a few weeks?
And, if you don’t want to bother setting up and managing Meilisearch yourself, we can help you with that over at scrywp.com. Let me know if you are interested and I can share more.