lando / solr

The Official Solr Lando Plugin
https://docs.lando.dev/solr/
GNU General Public License v3.0
0 stars 7 forks source link

Multiple solr cores in one solr service #2

Open mrtronje opened 4 years ago

mrtronje commented 4 years ago

Is there a possability to use multiple cores in one Solr Service? Our CMS use this way of configuration for multiple languages (one solr core per language).

I found this comment, but it doesn't give a hint how to achieve that:

@tanc is correct about the URLS. it might be possible to support multiple cores in a single image but that should be a separate issue

Originally posted by @pirog in https://github.com/lando/lando/issues/1123#issuecomment-453798883

pirog commented 4 years ago

@mrtronje i dont think we will have this baked into the Lando config itself but we can probably provide a guide around how you can do this manually with lando build steps

mrtronje commented 3 years ago

@pirog if you could provide a guide that would be great 😃

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

gitressa commented 3 years ago

Thanks Stalebot, but this issue is still relevant.

julien-langlois commented 2 years ago

Is this feature planned?

This can be very useful in the case of multi-site Drupal projects where each site has its own SolR core because duplicating SolR services is, in my opinion, not the right option.

pirog commented 2 years ago

feature is planned but won't be soon. currently the one-core-per-service model is a function of how the underlying image works.

however, and regardless of whether that model is "right" or not, supporting multiple cores in a single service would be a good feature.

julien-langlois commented 2 years ago

We are talking about SolR here, but I imagine that the same logic could be applied to MySQL/MariaDB or Redis (for example).

The idea I have is to be able to manage this natively via the parameters made available by Lando without having to launch particular commands during the build steps.

pirog commented 2 years ago

yup. our plan is to have multi database support for SQLy things as well.

GinovskiIvan commented 2 years ago

Is there any update on this? Furthermore, could I ask, if multiple cores can be generated from the same solrconfig.xml file?

oldeb commented 3 months ago

Same here, stil trying to achieve a multisite configuration with 9 databases and 9 solr cores. Any help on the config would be great.

vaccinemedia commented 1 month ago

Same here - I have been using Drupal VM by Jeff Geerling https://github.com/geerlingguy/drupal-vm for a few years now but on a recent re-build from scratch none of my Drupal sites can delete content which is a very weird behaviour. There's no errors and my Wordpress sites on the same provisioned VM (I use it for LOTs of Drupal sites and a couple of Wordpress sites too) do not have this issue. When deleting content all I get is "there was an error" and that's about it. Nothing in the server logs or the Drupal logs either.

So as I'm now updating the Drupal projects to Drupal 10 and above I'm looking for a way of continuing development on these sites which is as easy as it was before using Drupal VM.

One of the sites is a multi-site installation where each site on the multi-site has it's own database and Solr Core and I'm currently up to 5 sites sharing the same codebase so any help here regarding having multiple Solr Cores would be amazing otherwise I'm either going to have to debug the Drupal VM or look for an alternative solution somewhere else but Lando looks like a good fit so far.

I'm a bit old school where my local dev usually mirrors the live server so I only have one VM running locally with all of my dev sites in there at the same time when I run "vagrant up" so with the Drupal VM I have all my sites in a folder in the Drupal VM folder called "sites" and have multiple websites and databases set in the config file.