Forums / Extensions / eZ Find / Relevancy Ranking and improving the Search Result

Relevancy Ranking and improving the Search Result

Author Message

Martin Bergmeyer

Thursday 09 July 2009 4:49:54 am

On this page: http://ez.no/ezfind/search_engine_for_ez_publish there are some features described, which I don't know how I can use some of them.

How is it possible to affect the relevancy ranking as it is described in the first point?
How can I use the spell checker and the “best guesses” feature as it is described in the third point.

Thanks in advance for answers.

Max Keil

Thursday 09 July 2009 8:19:38 am

Hi Martin,

try the eZ Find manual:
http://ez.no/doc/extensions/ez_find

there are a lot of usefull examples, which can help you with your questions.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Martin Bergmeyer

Friday 10 July 2009 12:35:39 am

Hi Max,

thanks for your answer.

I looked into the manual, but I could not find the right answer to my questions.

Do you have more hints for me?

Max Keil

Saturday 11 July 2009 2:59:37 pm

Hi Martin,

you can sort your result by relevancy like this:

{set $search=fetch( ezfind,search,
                        hash( 'query', $search_text,
                              'offset', $view_parameters.offset,
                              'limit', $page_limit,
                              'sort_by', hash( 'score', 'desc' ),
                              'facet', $facetParameters,
                              'filter', $filterParameters ))}

sort_by hash( 'score', 'desc' ) for higher relevant results to be on the top.

To use the spell checker you have to build the spelling index of your solr:

  http://localhost:8983/solr/select/?q=ez&spellcheck.build=true

you should run it only once.It should not be specified with for each request. Now you can use:

{if $search_extras.spellcheck_collation}
{$search_extras.spellcheck_collation}
{/if}

to display your suggestion.

"more like this" is also a fetch function provided by ezfind. You can use it the same way as the search function. Take another look into the manual on page 21.

If you need more help - you can contact me via email: m.keil@all2e.com

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Martin Bergmeyer

Monday 13 July 2009 4:11:49 am

Ok, thank you very much for your help. Now I can go on a step further.

Max Keil

Wednesday 15 July 2009 2:41:27 am

You're welcome.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

eZ debug

Timing: Jan 18 2025 02:49:47
Script start
Timing: Jan 18 2025 02:49:47
Module start 'content'
Timing: Jan 18 2025 02:49:48
Module end 'content'
Timing: Jan 18 2025 02:49:48
Script end

Main resources:

Total runtime0.5876 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1016180.7578
Module start 'content' 0.00630.4507 769.8594576.8125
Module end 'content' 0.45700.1305 1,346.6719341.3438
Script end 0.5875  1,688.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.6635210.0002
Check MTime0.00150.2497210.0001
Mysql Total
Database connection0.00070.119110.0007
Mysqli_queries0.500385.14392050.0024
Looping result0.00190.32202030.0000
Template Total0.556094.620.2780
Template load0.00220.368820.0011
Template processing0.553894.256020.2769
Template load and register function0.00010.022610.0001
states
state_id_array0.00090.144710.0009
state_identifier_array0.00080.134820.0004
Override
Cache load0.00180.3053360.0000
Sytem overhead
Fetch class attribute can translate value0.00140.230430.0005
Fetch class attribute name0.00110.186570.0002
XML
Image XML parsing0.00090.147430.0003
class_abstraction
Instantiating content class attribute0.00000.004090.0000
General
dbfile0.00190.3198270.0001
String conversion0.00000.000930.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs