collective / collective.solr

Solr search engine integration for Plone
https://pypi.org/project/collective.solr/
22 stars 46 forks source link

Multi-Core possible? #262

Closed adrianschulz closed 2 years ago

adrianschulz commented 4 years ago

I would like to setup collective.solr with multiple cores.

I found https://community.plone.org/t/collective-solr-and-solr-version/3633 but since then a lot changed in collective.solr.

What's the current state regarding multiple cores? Is it possible? How? Does it have any limitations?

tisto commented 4 years ago

@adrianschulz Solr supports multi-core configurations out of the box. I do not see any reason why a proper Solr multi-core or Solr could configuration should not work with c.solr.

adrianschulz commented 4 years ago

@tisto I thought about querying multiple cores. Accorrding to https://training.plone.org/5/solr/solr-configuration.html a setup with multiple cores is possible, but searching and indexing is only possible for the default core.

tisto commented 4 years ago

@adrianschulz I wouldn't rely too much on the c.solr documentation here. Check the Solr docs for a multi-core setup that allows both writing and reading.

adrianschulz commented 4 years ago

I found a solution for querying a specific core (I was looking for this). See Pull Request in my Fork .

@tisto Do you think this could be helpful for others? If so I could improve the code so I would pass the tests. Of course the default would be form another field in the control-panel (default core) and not hard-coded.

laulaz commented 2 years ago

See #313 👍

laulaz commented 2 years ago

@adrianschulz This has been merged and released in 9.0.0a6 👍