Forums / Extensions / eZ Find / moreLikeThis

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

eZ debug

Timing: Jan 29 2025 13:46:47
Script start
Timing: Jan 29 2025 13:46:47
Module start 'content'
Timing: Jan 29 2025 13:46:47
Module end 'content'
Timing: Jan 29 2025 13:46:47
Script end

Main resources:

Total runtime0.0172 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.9375180.7969
Module start 'content' 0.00840.0049 768.734494.9297
Module end 'content' 0.01330.0039 863.664170.7031
Script end 0.0172  934.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002213.0152120.0002
Check MTime0.00105.9587120.0001
Mysql Total
Database connection0.00116.139810.0011
Mysqli_queries0.003419.716340.0009
Looping result0.00000.174220.0000
Template Total0.003520.410.0035
Template load0.00105.647610.0010
Template processing0.002514.670110.0025
Override
Cache load0.00063.590410.0006
General
dbfile0.00031.7821100.0000
String conversion0.00000.052530.0000
Note: percentages do not add up to 100% because some accumulators overlap

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.0001 secs