How can I globally restrict the search to certain node types? I use flexinode module for articles and text banners, but naturally I wouldn't like to have banners appear in the search results. The search should, however, cover pages and forum postings. I would also prefer if I could removed the "advanced search", just like it's done on drupal.org.

Do I have to code a custom search module for this?

Comments

venkat-rk’s picture

Flexisearch module?

Not sure if it has been updated for 4.7.

moshe weitzman’s picture

you will probably have to use 4.7 for this.

saml’s picture

I didn't get it (how to do it in 4.7)
I have a similar problem. I want the users to search for all content types BUT the image content type.
How do I accomplish that in 4.7?

Regards
// Samuel

aaron’s picture

I'm trying to figure this out in 4.7, too. If I do, I'll post a solution here.

Advomatic (Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes)

moshe weitzman’s picture

on 4.6, you could use trip_search,module. see contrib ... i just remembered about it.

venkat-rk’s picture

I second Moshe's suggestion to use trip_search if you are on 4.6. It can do exactly what you want- restricting to specific content types. I use it too.

ymcp’s picture

...is a 2 line change to the search.module, as described in how to restrict search to certain node types