Forums / Developer / New contrib: Title Weighed Search Plugin

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

eZ debug

Timing: Jan 18 2025 19:25:12
Script start
Timing: Jan 18 2025 19:25:12
Module start 'content'
Timing: Jan 18 2025 19:25:12
Module end 'content'
Timing: Jan 18 2025 19:25:12
Script end

Main resources:

Total runtime0.1890 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.0074 588.9609180.8281
Module start 'content' 0.00740.0055 769.7891101.9297
Module end 'content' 0.01290.1761 871.7188530.3750
Script end 0.1889  1,402.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.8163200.0002
Check MTime0.00140.7647200.0001
Mysql Total
Database connection0.00070.386810.0007
Mysqli_queries0.141674.90261410.0010
Looping result0.00140.73041390.0000
Template Total0.175893.010.1758
Template load0.00080.397910.0008
Template processing0.175092.592110.1750
Override
Cache load0.00050.280910.0005
Sytem overhead
Fetch class attribute can translate value0.00090.460310.0009
XML
Image XML parsing0.00030.149210.0003
General
dbfile0.00170.8963200.0001
String conversion0.00000.004230.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.0001 secs