Forums / Setup & design / Exclude Media Library from being searched

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