By roxeteer on
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
Flexisearch module?
Flexisearch module?
Not sure if it has been updated for 4.7.
4.7 has this
you will probably have to use 4.7 for this.
Didn't get it...
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
to remind me...
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)
trip_search
on 4.6, you could use trip_search,module. see contrib ... i just remembered about it.
I second Moshe's suggestion
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.
An alternative simple solution...
...is a 2 line change to the search.module, as described in how to restrict search to certain node types