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.