eZFind and objectrelations

Author Message

Lars Eirik R

Tuesday 09 November 2010 4:12:13 am

Hi.

I am currently working on a project where we need to be able to tag articles with a set of predefined elements. This is using an objectrelationslist whereby tags may be related to for instance articles.

When using ezfind today all of these tagged elements (objects which consist of only a name) update the ezfind index with the searchterm, (ie the name of the object)

In our case we do realize that there may be situations whereby administrators have to change the keyword. Our solution is currently to run a workflow which updates all revers_related objects with the new name of the tag. If there are many articles which have to be updated than this process will take some time..

Is there an easy way to have obejctrelationslist send in the object id instead of the actual string? Are there any negatives to this solution? (i do realise that it will not work with a regular text search by users because only the objectid is added to the document)

Will I have to construct my own class and have this being used by the objectrelationslist perhaps?

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

Main resources:

Total runtime0.6044 sec
Peak memory usage4,096.0000 KB
Database Queries48

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.0781152.6250
Module start 'layout' 0.00640.0038 741.703139.4688
Module start 'content' 0.01030.5924 781.1719440.2578
Module end 'content' 0.60270.0017 1,221.42978.1563
Script end 0.6044  1,229.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5385160.0002
Check MTime0.00130.2216160.0001
Mysql Total
Database connection0.00080.128910.0008
Mysqli_queries0.565093.4686480.0118
Looping result0.00050.0896460.0000
Template Total0.569294.220.2846
Template load0.00210.353720.0011
Template processing0.567193.818320.2835
Template load and register function0.00010.017910.0001
states
state_id_array0.00100.164010.0010
state_identifier_array0.00070.116020.0004
Override
Cache load0.00180.2903100.0002
Sytem overhead
Fetch class attribute can translate value0.00120.191610.0012
Fetch class attribute name0.00080.132320.0004
XML
Image XML parsing0.00110.175410.0011
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00110.1790160.0001
String conversion0.00000.001840.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/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: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs