object relations, indexing, and search results

Author Message

Josh Bair

Monday 27 July 2009 10:31:11 am

How do object relations attributes marked as searchable work? Does every searchable attribute in a related object end up being applied to the original object?

This seems to be the case and we're running into problems. As an example, if you search for "orange" you will 16 results back. However, only 4-5 of these contain orange when you actually visit the pages (or view them in the edit interface). This is because the word orange exists in a related objects.

The solution at first seems to be marking the object relations attributes as non-searchable but this creates issues because the names of the related objects are valuable to the search index, just not the other attributes.

Any ideas?

Ivo Lukac

Tuesday 28 July 2009 8:02:22 am

I know it is not exactly what you are looking for but you can boost down objectrelation datatype so at least "false" orange result will get lower score:
[IndexBoost]
Datatype[ezobjectrelation]=0.5

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

Josh Bair

Monday 03 August 2009 12:40:34 pm

Is 1.0 the default boost level? What would a level of 0 do?

Are these supported on the attribute level? (Both in the style of "specific_attribute_name" and "specific_class_name/specific_attribute_name")?

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 10:42:31
Script start
Timing: Jan 18 2025 10:42:31
Module start 'layout'
Timing: Jan 18 2025 10:42:31
Module start 'content'
Timing: Jan 18 2025 10:42:31
Module end 'content'
Timing: Jan 18 2025 10:42:31
Script end

Main resources:

Total runtime0.5470 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 589.2891152.6406
Module start 'layout' 0.00890.0035 741.929739.4766
Module start 'content' 0.01240.5334 781.4063543.5625
Module end 'content' 0.54570.0012 1,324.968812.1172
Script end 0.5470  1,337.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6321160.0002
Check MTime0.00130.2414160.0001
Mysql Total
Database connection0.00120.213010.0012
Mysqli_queries0.496290.7090590.0084
Looping result0.00070.1251570.0000
Template Total0.512093.620.2560
Template load0.00250.454020.0012
Template processing0.509593.145520.2548
Template load and register function0.00010.021410.0001
states
state_id_array0.00070.127810.0007
state_identifier_array0.00090.171620.0005
Override
Cache load0.00210.3880170.0001
Sytem overhead
Fetch class attribute can translate value0.00110.201220.0006
Fetch class attribute name0.00110.198350.0002
XML
Image XML parsing0.00110.197720.0005
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00100.1784240.0000
String conversion0.00000.001240.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs