Forums / Developer / [solved] ezSearch / excluding specific classes from search

[solved] ezSearch / excluding specific classes from search

Author Message

Patrick Kaiser

Thursday 06 October 2005 9:46:41 am

hi,

i'm just trying to implement the search for a site and having problems to exclude specific content-classes from the search. Can't believe that there is no way to do it smartly. would also be fine to be able to include more than one class (array of class_id's) in the search, but the documentation says, that the search can only be limited to one class by supplying the parameter 'class_id'.

-- from the docs --
fetch( content, search,
hash( text, text,
[ ... ]
[ class_id, id, ]
---

Do I really have to fetch all the results and than filter them manually?

Any ideas would be highly appreciated! Thanks.

patrick


Best regards,

Patrick

Patrick Kaiser

Friday 07 October 2005 10:24:18 am

I found out that the parameter class_id can also be an array, i added a comment to the respective documentation page with further explainations..

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


Best regards,

Patrick

Pratibha Gannavarapu

Monday 12 June 2006 10:01:47 pm

Hi
I am having same problems regarding excluding the classes from search. But I dont want to use the 'include' as there are only 2 or 3 classes that have to be excluded from search and about 25 content classes to be included. Wish there is a decent way for excluding..Any ideas regarding this?
Cheers
Pratibha