Forums / Extensions / eZ Find / object relations, indexing, and search results

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")?

eZ debug

Timing: Jan 18 2025 03:05:33
Script start
Timing: Jan 18 2025 03:05:33
Module start 'content'
Timing: Jan 18 2025 03:05:33
Module end 'content'
Timing: Jan 18 2025 03:05:33
Script end

Main resources:

Total runtime0.1623 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0105 589.0234180.7578
Module start 'content' 0.01050.0038 769.781395.0078
Module end 'content' 0.01430.1479 864.7891524.4219
Script end 0.1622  1,389.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.2087200.0002
Check MTime0.00140.8491200.0001
Mysql Total
Database connection0.00090.547910.0009
Mysqli_queries0.117072.13161410.0008
Looping result0.00140.86431390.0000
Template Total0.147690.910.1476
Template load0.00090.566410.0009
Template processing0.146790.378610.1467
Override
Cache load0.00070.403610.0007
Sytem overhead
Fetch class attribute can translate value0.00080.515910.0008
XML
Image XML parsing0.00020.150910.0002
General
dbfile0.00251.5594200.0001
String conversion0.00000.003730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs