eZFind: How do I specify an individual Solr core for each site?

Author Message

Bayron Guevara

Tuesday 28 December 2010 7:40:34 pm

I'm using an unique eZP installation to host two websites each one composed by three site access that share the same database. And I'd like to know how I can setup eZFind in order to use a different Solr core for each site. I already have running two cores and I've tried unsuccessfully tweaking the parameter solr.ini[SolrBase]SearchServerURI inside the respective siteaccess overrides, but appears that eZFind only accepts configuration files located under the override directory and those inside the extension. So this is limiting me to use only one core for all sites.

Any suggestions? Maybe it can be accomplished through the use of Solr Shards?

Web Developer & Modern Philosopher
Visit http://www.laprensa.hn, http://www.diez.hn, http://www.estilo.hn

Bertrand Dunogier

Wednesday 29 December 2010 1:18:27 am

I'm a bit surprised by this. The solr URI should be configurable at any level.

I'll give this setup a try, and I'll let you know.

On the other hand, remember that you can by default index completely different sites in the same solr index, as the (site specific) site ID will by default be used to filter out search results.

On a more generic note, we usually recommend not to use the same ezp setup for multiple sites unless they're actually related (common design items, for instance). If the websites are related, being able to run cross-site searches is actually a good option. If no relation exists, it is much easier to maintain the sites separately.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Bayron Guevara

Wednesday 29 December 2010 7:23:35 am

Thanks for your suggestions Bertrand. Yes, in my case the websites are related and for this reason I chose the same ezp setup. Now that I know than eZFind adds the SiteID in the search query, I prefer use the same Solr core.
But, still remains the issue related to the per siteaccess configuration of the solr.ini file. Please, update this ticket when you confirm this is true and I'll post a new issue in the eZ Publish tracker system.

Web Developer & Modern Philosopher
Visit http://www.laprensa.hn, http://www.diez.hn, http://www.estilo.hn

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.