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 :-(

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

eZ debug

Timing: Jan 18 2025 05:07:49
Script start
Timing: Jan 18 2025 05:07:49
Module start 'layout'
Timing: Jan 18 2025 05:07:49
Module start 'content'
Timing: Jan 18 2025 05:07:49
Module end 'content'
Timing: Jan 18 2025 05:07:49
Script end

Main resources:

Total runtime0.4815 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 591.9609152.6406
Module start 'layout' 0.00590.0051 744.601639.4766
Module start 'content' 0.01100.4691 784.0781574.8594
Module end 'content' 0.48010.0014 1,358.937516.1328
Script end 0.4815  1,375.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.6167160.0002
Check MTime0.00120.2575160.0001
Mysql Total
Database connection0.00100.215810.0010
Mysqli_queries0.426188.4888680.0063
Looping result0.00060.1334660.0000
Template Total0.449093.220.2245
Template load0.00180.364120.0009
Template processing0.447292.878720.2236
Template load and register function0.00030.054210.0003
states
state_id_array0.00090.181510.0009
state_identifier_array0.00120.258620.0006
Override
Cache load0.00150.3022340.0000
Sytem overhead
Fetch class attribute can translate value0.00080.159120.0004
Fetch class attribute name0.00180.374970.0003
XML
Image XML parsing0.00060.131720.0003
class_abstraction
Instantiating content class attribute0.00000.003580.0000
General
dbfile0.00080.1646170.0000
String conversion0.00000.002140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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