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