Exclude Media Library from being searched

Author Message

Softriva .com

Saturday 10 February 2007 7:50:28 am

How can I exclude the Media Library from being searched?

kracker (the)

Saturday 10 February 2007 11:02:02 am

There are a number of past conversations which cover several solutions to the real requirement presented by your original request.

<i>http://ez.no/content/advancedsearch?SearchText=search+exclude+class&SubTreeArray[]=308&SearchPageLimit=5</i>

I suggest adding a class exclusion parameter to your search implementation (module vs template operator).

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

I think the advanced search module offers a very rich set of additional variables (post) you may populate using additional html hidden form variables within your search query submission form. I myself use the advanced search in this way.

I think I would add a search by content class id limitation, SearchContentClassID=42. I use this variable as a list with some secondary issues which may require local modification depending on your needs.

<i>http://ez.no/community/forum/developer/question_on_advanced_search_function
http://ez.no/community/forum/setup_design/attribute_filter_for_two_classes</i>

//kracker

<i>Atmosphere - Steps
Kittie - Brackish</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Paul Borgermans

Saturday 10 February 2007 1:35:45 pm

Hi OOzy

Just use the subtree_array limitation for the search.

In future search extensions (aurora/lucene), I'll also make this kind of options far easier (like an array of section id's, array of class id's, ..).

When: before the summer conference ;-)

Regards

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 04:26:27
Script start
Timing: Jan 31 2025 04:26:27
Module start 'layout'
Timing: Jan 31 2025 04:26:27
Module start 'content'
Timing: Jan 31 2025 04:26:27
Module end 'content'
Timing: Jan 31 2025 04:26:27
Script end

Main resources:

Total runtime0.0146 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.2656151.2266
Module start 'layout' 0.00590.0027 739.492236.6797
Module start 'content' 0.00860.0045 776.171990.1875
Module end 'content' 0.01310.0015 866.359433.9922
Script end 0.0145  900.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.7326140.0002
Check MTime0.00117.6546140.0001
Mysql Total
Database connection0.00064.451110.0006
Mysqli_queries0.002718.813530.0009
Looping result0.00000.103010.0000
Template Total0.00117.410.0011
Template load0.00085.657910.0008
Template processing0.00021.687610.0002
Override
Cache load0.00053.684210.0005
General
dbfile0.00031.736680.0000
String conversion0.00000.050740.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