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

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

eZ debug

Timing: Jan 29 2025 13:33:13
Script start
Timing: Jan 29 2025 13:33:13
Module start 'content'
Timing: Jan 29 2025 13:33:13
Module end 'content'
Timing: Jan 29 2025 13:33:14
Script end

Main resources:

Total runtime0.1327 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.1875180.8047
Module start 'content' 0.00660.0072 768.992298.0859
Module end 'content' 0.01380.1189 867.0781526.4063
Script end 0.1327  1,393.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.01078.0663200.0005
Check MTime0.00161.2016200.0001
Mysql Total
Database connection0.00080.594610.0008
Mysqli_queries0.081061.03771410.0006
Looping result0.00100.76021390.0000
Template Total0.118589.310.1185
Template load0.00100.767710.0010
Template processing0.117588.539010.1175
Override
Cache load0.00070.556710.0007
Sytem overhead
Fetch class attribute can translate value0.00060.464910.0006
XML
Image XML parsing0.00030.213910.0003
General
dbfile0.00685.1525200.0003
String conversion0.00000.004330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs