Using Drupal on a project which I made custom node types in using the CCK. I want to be able to search the specific node based on a custom field the node has. So let's say I have this node type Article which has a field "myfield", I want to be able to search for Articles based on the myfield field. I understand the default search module allows for searching of node types using the type:MyNodeType in the search, but I did not see any way to limit which fields are searched. Any tips? Is this something that is going to get crazy? Appreciate the help.
Searching custom nodes' by field in Drupal?
2.2k Views Asked by Joseph At
3
There are 3 best solutions below
0

I use the Search API and Search API DB modules along wth Views for this.
This is a nice how to article.
0

Checkout the CCK Facets module. Some more details about this module (from its project page):
CCK Facets is a bundle of modules that integrate with Faceted Search to expose Content Construction Kit (CCK) fields as facets. This allows users to browse field values and to filter search results with those values.
The supported CCK field types are:
- Text
- Number
- Node Reference
- User Reference
- Date
- Datestamp
The default search cannot filter by specific fields.
You have a couple options.