This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Extensions » eZ Find » Relevancy Ranking and improving the...

Relevancy Ranking and improving the Search Result

Relevancy Ranking and improving the Search Result

Thursday 09 July 2009 1:49:54 pm - 5 replies

On this page: 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.

Thursday 09 July 2009 5:19:38 pm

Hi Martin,

try the eZ Find manual:

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

Friday 10 July 2009 9: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?

Saturday 11 July 2009 11: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:


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

{if $search_extras.spellcheck_collation}

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:

Monday 13 July 2009 1:11:49 pm

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

Wednesday 15 July 2009 11:41:27 am

You're welcome.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from