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

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 10:31:44
Script start
Timing: Jan 18 2025 10:31:44
Module start 'layout'
Timing: Jan 18 2025 10:31:44
Module start 'content'
Timing: Jan 18 2025 10:31:45
Module end 'content'
Timing: Jan 18 2025 10:31:45
Script end

Main resources:

Total runtime0.5554 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.0057 588.1875152.6563
Module start 'layout' 0.00570.0023 740.843839.5078
Module start 'content' 0.00800.5460 780.3516571.7031
Module end 'content' 0.55400.0014 1,352.054716.1016
Script end 0.5554  1,368.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5431160.0002
Check MTime0.00130.2327160.0001
Mysql Total
Database connection0.00100.175510.0010
Mysqli_queries0.490788.3489680.0072
Looping result0.00070.1212660.0000
Template Total0.520693.720.2603
Template load0.00200.363920.0010
Template processing0.518593.360320.2593
Template load and register function0.00030.047910.0003
states
state_id_array0.00130.226610.0013
state_identifier_array0.00120.222720.0006
Override
Cache load0.00170.3137360.0000
Sytem overhead
Fetch class attribute can translate value0.00060.114620.0003
Fetch class attribute name0.00190.344570.0003
XML
Image XML parsing0.00070.120120.0003
class_abstraction
Instantiating content class attribute0.00000.005790.0000
General
dbfile0.00080.1453160.0001
String conversion0.00000.001340.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/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs