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: [email protected]
Mit freundlichen Grüßen
Best regards
Max Keil
____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh
|