Forums / Developer / Modify ez search by class-relevance

Modify ez search by class-relevance

Author Message

K259

Tuesday 19 July 2005 1:48:16 am

How is it possible to first list articles, then folder titles, then link titles with the ez search eninge?

I want to index all classes and attribs, but in my case articles are more relevant than folder titles etc, so I want this to be listed on top..

Easy to achieve this with eZ p?

K259

Tuesday 19 July 2005 2:33:12 am

Or is it possible to sort by class in the fetch? But how? Anyone have ideas?

David Eriksson

Tuesday 19 July 2005 4:37:38 am

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/list

sort_by, array('class_name', true())

That will sort it by class name. It'll still be a problem if you want <b>F</b>olders to come before <b>A</b>rticles but after <b>C</b>omment though...

In which case the only way I can think off is to fetch them one class at a time, alternatively all at once and then loop through one class at a time.

/David