moreLikeThis

Author Message

Nicolas OTTAVI

Tuesday 10 August 2010 6:46:44 am

Hi,

The ezfind moreLikeThis sounds appealing, but quite a "black box".

I was wondering if this function could be used to find similar content based on the object ezkeyword attribute. I have done something like this:

{def $related_content=fetch( 'ezfind', 'moreLikeThis', hash( 'query_type', 'text',
'query', $node.data_map.tags.content.keyword_string,                                                             'limit', 5,                                                             'class_id', $node.class_identifier                           ))}{def $related_content=fetch( 'ezfind', 'moreLikeThis', hash( 'query_type', 'text',                                                             'query', $node.data_map.tags.content.keyword_string,
'limit', 5,
'class_id', $node.class_identifier))}

But I got no results. Even if the query is just a keyword. When I enter this keyword in a search box it returns results ... Is there a way to find objects which share the same keywords as the current object ?

Thanks for your help,

Nico O

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 29 2025 14:43:43
Script start
Timing: Jan 29 2025 14:43:43
Module start 'layout'
Timing: Jan 29 2025 14:43:43
Module start 'content'
Timing: Jan 29 2025 14:43:43
Module end 'content'
Timing: Jan 29 2025 14:43:43
Script end

Main resources:

Total runtime0.0132 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1484151.2109
Module start 'layout' 0.00510.0035 739.359436.6328
Module start 'content' 0.00850.0035 775.992291.2031
Module end 'content' 0.01200.0011 867.195329.9922
Script end 0.0131  897.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002014.8479140.0001
Check MTime0.00096.9574140.0001
Mysql Total
Database connection0.00053.935310.0005
Mysqli_queries0.004534.258030.0015
Looping result0.00000.092410.0000
Template Total0.00096.610.0009
Template load0.00075.136510.0007
Template processing0.00021.422310.0002
Override
Cache load0.00043.411710.0004
General
dbfile0.00021.625280.0000
String conversion0.00000.045340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs