ezfind : 1 ezpublish, X websites = X solr core ?

Author Message

Matthieu Sévère

Thursday 15 July 2010 5:51:51 am

Hi,

I have on eZ Publish instance on 1 DB. This instance host X different websites (using rootNodeId to define several content tree).

What do you advise to set-up solr (of course each site must search only in his content tree) ?

I just set up a solr where I define a core for each siteaccess but when I run updatesearchindex it looks like everything is indexed in each core ...

Note : each site can have several languages

Thanks for sharing your ideas :)

--
eZ certified developer: http://ez.no/certification/verify/346216

Matthieu Sévère

Thursday 15 July 2010 7:20:25 am

I am starting to think that I am obliged to use one core for every language and all content trees and do filtering on rootNodeId to search only in content related to current website.

--
eZ certified developer: http://ez.no/certification/verify/346216

Ivo Lukac

Thursday 15 July 2010 8:14:16 am

Yes, one core for every language is the best.

There is a non-documented option in updatesearchindex script for top_node_id but I am not sure that it will work nice after the first index.

Anyway, 1 core for every language is good enough. If you share content in db, there is no reason to divide it in the index. Filtering on root node_id is easy to implement.

Cheers

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Matthieu Sévère

Thursday 15 July 2010 8:55:15 am

Thanks Ivo !

--
eZ certified developer: http://ez.no/certification/verify/346216

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 02:00:06
Script start
Timing: Jan 18 2025 02:00:06
Module start 'layout'
Timing: Jan 18 2025 02:00:06
Module start 'content'
Timing: Jan 18 2025 02:00:06
Module end 'content'
Timing: Jan 18 2025 02:00:06
Script end

Main resources:

Total runtime0.5699 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.0703152.6406
Module start 'layout' 0.00670.0032 741.710939.4922
Module start 'content' 0.00990.5581 781.2031560.1094
Module end 'content' 0.56800.0018 1,341.312512.1172
Script end 0.5698  1,353.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6262160.0002
Check MTime0.00140.2370160.0001
Mysql Total
Database connection0.00080.147810.0008
Mysqli_queries0.510789.6220620.0082
Looping result0.00070.1174600.0000
Template Total0.532993.520.2664
Template load0.00210.370120.0011
Template processing0.530793.136520.2654
Template load and register function0.00010.017910.0001
states
state_id_array0.00090.159010.0009
state_identifier_array0.00180.324020.0009
Override
Cache load0.00170.3001220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.105720.0003
Fetch class attribute name0.00150.258960.0002
XML
Image XML parsing0.00110.201820.0006
class_abstraction
Instantiating content class attribute0.00000.003180.0000
General
dbfile0.00100.1829230.0000
String conversion0.00000.001040.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0003 secs