Search stats

Author Message

Ivo Lukac

Tuesday 20 October 2009 8:40:25 am

I was quite surprised that search statistics is not counted when search from template is used:
The line:

eZSearchLog::addPhrase( $searchText, $searchData["SearchCount"] );

can be only found in content/search and content/advancedsearch module.

Any ideas how to make it work?

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

Gaetano Giunta

Tuesday 20 October 2009 9:52:36 am

Post an issue in the tracker? ;)

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Tuesday 20 October 2009 9:55:29 am

On a more serious note: you can create a template operator that executes exactly that php call, and add it to your templates that do the within-template search.

But for the long-term sustainability, I think we should add a 'register_in_logs' param to the search fetch function.

You could even write your custom search fetch function that calls the underlying one and adds the search logging...

Principal Consultant International Business
Member of the Community Project Board

Ivo Lukac

Wednesday 21 October 2009 1:52:26 am

Template operator could be the eaZy way right now, but it should be added into search functions (not in content/search) to have more uniform solution...

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

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 19:12:57
Script start
Timing: Jan 18 2025 19:12:57
Module start 'layout'
Timing: Jan 18 2025 19:12:57
Module start 'content'
Timing: Jan 18 2025 19:12:58
Module end 'content'
Timing: Jan 18 2025 19:12:58
Script end

Main resources:

Total runtime0.6884 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 590.7031152.6094
Module start 'layout' 0.00580.0029 743.312539.3984
Module start 'content' 0.00870.6782 782.7109556.5859
Module end 'content' 0.68690.0015 1,339.296912.5156
Script end 0.6884  1,351.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4834160.0002
Check MTime0.00140.1968160.0001
Mysql Total
Database connection0.00070.099010.0007
Mysqli_queries0.631291.6876600.0105
Looping result0.00050.0749580.0000
Template Total0.654895.120.3274
Template load0.00220.317720.0011
Template processing0.652694.804920.3263
Template load and register function0.00010.016010.0001
states
state_id_array0.00080.112310.0008
state_identifier_array0.00070.101720.0003
Override
Cache load0.00180.2632200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.081220.0003
Fetch class attribute name0.00110.156360.0002
XML
Image XML parsing0.00100.141120.0005
class_abstraction
Instantiating content class attribute0.00000.002680.0000
General
dbfile0.00580.8491230.0003
String conversion0.00000.001440.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs