Forums / Extensions / eZ Find / ezfind and multiple installations

ezfind and multiple installations

Author Message

Gwenal Le Bihan

Friday 07 November 2008 7:36:49 am

Hello,
I have a problem using ezfind on a multiple sites ez4.0.1
I have three differents sites on the same ez installation.
This is my ezfind.ini in ezfind extension

[SiteSettings]
# Prepend site URL with http:// or https://
URLProtocol=http://
# Site index public available. For changes to take effect, the search
# index must be updated by running bin/php/updatesearchindex.php
IndexPubliclyAvailable=disabled
# Search other installations
SearchOtherInstallations=disabled

After updating all three indexations (php extension/ezfind/bin/php/updatesearchindexsolr.php -s <admin siteaccess>), all the contents are indexed in all three sites.
i.e.
for instance a word has 45 matches in all 3 admin design and all 45 can be listed and in the front of the first it says there are 45 matches but is showing the ones related to the siteaccess (10 for one, 17 for the second and 18 for the third)..

So it's searching in other intallations whereas the variable SearchOtherInstallations is disabled...

What am i doing wrong in the process, couldn't find anything about it on the forum?

Thx

Gwen

Gwenal Le Bihan

Monday 10 November 2008 2:17:14 am

Anybody?

The only solution i see is to duplicate the java process, one per site, and the data/index folder to separate the search results... but it will be greedy and somehow not very nice.

It seems like there's something obvious that I did wrong but i don't know what..

Thank you
Gwen

Steven E. Bailey

Friday 23 January 2009 2:18:40 am

I've got the same question - is there any documentation for this? If there is, I'm not finding it.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Steven E. Bailey

Friday 23 January 2009 5:34:07 am

Never mind. One of the sites that I was trying to index was running ezfind 1.0 - which saves its index files to the local data dir instead of /srv/solr. I upgraded to ezfind 2.0 and it works as expected.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Gwenal Le Bihan

Wednesday 25 March 2009 4:26:55 am

I had given up for a while the use of eZFind and now that i'm back on it (eZFind2.0), I still have the same problem..
Ok the index are located in /srv/solr but it makes no difference, in my indexes, I have results from site1 when I do a search in site2, if for a search I have 5 results (apparently site1 + site2..), it's written You have 5 results to your search but It shows just the ones on the site1 if I'm on site1. And I have the same thing happening in the admin panel, it shows the 5 differents results but is unable to render the url_alias for the occurence that are outside my site.
I have 20 sites (admin + front) on the same instanciation of eZ and just tried on two sites and i just can't use it that way.. Even if in solrconfig.xml i can change the location, it doesn't seem possible to set multiples index emplacement, does it?
So same question, what am i doing wrong?..

Gwenal Le Bihan

Wednesday 25 March 2009 7:23:37 am

the answer was in mysql in the ezsite_data table... forgot to change the ezfind_site_id value :-(

eZ debug

Timing: Jan 18 2025 02:47:00
Script start
Timing: Jan 18 2025 02:47:00
Module start 'content'
Timing: Jan 18 2025 02:47:01
Module end 'content'
Timing: Jan 18 2025 02:47:01
Script end

Main resources:

Total runtime0.7590 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 587.8594180.7734
Module start 'content' 0.00830.5687 768.6328579.9531
Module end 'content' 0.57700.1816 1,348.5859337.3750
Script end 0.7586  1,685.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.6504210.0002
Check MTime0.00160.2095210.0001
Mysql Total
Database connection0.00070.087410.0007
Mysqli_queries0.670388.31742050.0033
Looping result0.00210.28122030.0000
Template Total0.726195.720.3630
Template load0.00210.281920.0011
Template processing0.723995.383620.3620
Template load and register function0.00020.021110.0002
states
state_id_array0.00080.109510.0008
state_identifier_array0.00090.119420.0005
Override
Cache load0.00190.2457340.0001
Sytem overhead
Fetch class attribute can translate value0.00160.212330.0005
Fetch class attribute name0.00290.381670.0004
XML
Image XML parsing0.00080.106830.0003
class_abstraction
Instantiating content class attribute0.00000.002580.0000
General
dbfile0.00801.0569280.0003
String conversion0.00000.001830.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs