- Issue created by @edwardsay
- π¦πΉAustria tgoeg
Not saying that your patch might not be beneficial, the way I solved this is the following:
- Drupal multisite setup (so yes, multiple sites on prod and dev)
- A dev and a prod Meilisearch instance (on separate servers, but this could be on the same server with different ports as well
- Config split switches between the two instances based upon where the site lives
I would however never advise to run dev and prod on one server, be the website as small as it may, considering you get a VPS instance for 3 EUR/USD a month.
No need to justify yourself, and don't feel patronized, your patch might very well be useful.
I just wanted to note this down for anyone looking to set this up similarly. - πΊπΈUnited States edwardsay
Thank you, @tgoeg
I completely agree regarding the necessity of separate servers for production and development environments. However, due to constraints, I had to devise a solution without completely altering the project architecture. Implementing a few Meilisearch instances on the same servers but with different ports is a fantastic idea, which I briefly mentioned as one possible approach in the description.
Using index prefixes is a common practice. For instance, this functionality is available in the Search API Solr Drupal module. Therefore, I believe it would be beneficial to incorporate this feature into the Search API Meilisearch module.