studioespresso / craft-scout

Craft Scout provides a simple solution for adding full-text search to your entries. Scout will automatically keep your search indexes in sync with your entries.
MIT License
81 stars 55 forks source link

Feature - Add support for multiple Element Types per Index #267

Closed andrewmenich closed 5 months ago

andrewmenich commented 1 year ago

I came across https://github.com/studioespresso/craft-scout/issues/69#issuecomment-548764036 as I had a similar need and thought I would submit a PR for it. It closely resembles the suggested syntax here but differs in that my implementation returns an array of query objects rather than merging the two. Open to any edits or feedback!

janhenckens commented 5 months ago

Hey @andrewmenich, I'm going to merge this in an older version to do away with a bunch of merge conflicts in the PR, I'll update it to the current version of Scout and then release a beta version that includes this.

Thanks for code and many apologies for not getting back to you sooner.