New contrib: Title Weighed Search Plugin

Author Message

Bruce Morrison

Friday 28 October 2005 12:26:44 am

Hi all,

I've released a hacked search plugin that sorts search results by search term frequency and adds a greater weight to the title of objects so they appear higher in the results.

See
http://ez.no/community/contribs/hacks/title_weighed_word_frequency_search_plugin

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Tony Wood

Friday 28 October 2005 1:48:47 am

What a great idea Bruce.

Thanks for sharing.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Kristof Coomans

Friday 28 October 2005 9:58:34 am

I didn't had the time to completely test it, but the following PHP warning always appears in the debug output when searching:

Undefined variable: accessList in .../plugins/twsearchengine/twsearchengine.php on line 487

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Bruce Morrison

Saturday 29 October 2005 8:47:27 pm

Hi Kristof

I've had a quick look at the code and it appears that the variable in question is not required by the function in which it is refered to as a parameter.

This plugin was written for an site using 3.4.4 and is simply modification to the existing default search plugin.

Looking at the changelog for the default search plugin there appears to have been many changes since 3.4.4 :) I'll look at bringing the plugin up to date durning the week and re-release a 3.6+ version.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Bruce Morrison

Sunday 30 October 2005 3:01:22 am

I've updated the plugin so that it is based on the 3.6 ezsearchengine plugin. This introduces the honouring of hidden nodes.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Bruce Morrison

Thursday 17 November 2005 11:22:57 pm

Version 1.2 has been released. It fixes a bug in the SQL when doing a phrase search.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 22:21:14
Script start
Timing: Jan 18 2025 22:21:14
Module start 'layout'
Timing: Jan 18 2025 22:21:14
Module start 'content'
Timing: Jan 18 2025 22:21:15
Module end 'content'
Timing: Jan 18 2025 22:21:15
Script end

Main resources:

Total runtime0.8976 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.1641152.6406
Module start 'layout' 0.00440.0027 741.804739.4766
Module start 'content' 0.00710.8890 781.2813626.1797
Module end 'content' 0.89610.0015 1,407.460916.1250
Script end 0.8976  1,423.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3513160.0002
Check MTime0.00130.1430160.0001
Mysql Total
Database connection0.00050.057810.0005
Mysqli_queries0.834292.9394680.0123
Looping result0.00080.0872660.0000
Template Total0.869296.820.4346
Template load0.00190.210820.0009
Template processing0.867396.619020.4336
Template load and register function0.00010.010510.0001
states
state_id_array0.00150.163810.0015
state_identifier_array0.00160.178520.0008
Override
Cache load0.00170.1865370.0000
Sytem overhead
Fetch class attribute can translate value0.00080.094630.0003
Fetch class attribute name0.00140.156490.0002
XML
Image XML parsing0.00150.165730.0005
class_abstraction
Instantiating content class attribute0.00000.0027120.0000
General
dbfile0.00110.1221280.0000
String conversion0.00000.000940.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs