[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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:33:46
Script start
Timing: Jan 31 2025 00:33:46
Module start 'layout'
Timing: Jan 31 2025 00:33:46
Module start 'content'
Timing: Jan 31 2025 00:33:46
Module end 'content'
Timing: Jan 31 2025 00:33:46
Script end

Main resources:

Total runtime0.0243 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.3750151.2422
Module start 'layout' 0.00540.0057 739.6172220.7344
Module start 'content' 0.01110.0120 960.3516997.8516
Module end 'content' 0.02310.0012 1,958.203133.9922
Script end 0.0243  1,992.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003012.3230140.0002
Check MTime0.00114.3218140.0001
Mysql Total
Database connection0.00125.061210.0012
Mysqli_queries0.003313.506030.0011
Looping result0.00000.069510.0000
Template Total0.00093.510.0009
Template load0.00072.846010.0007
Template processing0.00020.685510.0002
Override
Cache load0.00051.984110.0005
General
dbfile0.00031.290880.0000
String conversion0.00000.036240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs