Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
4.7.x-1.x-dev
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2006 at 15:25 UTC
Updated:
17 Sep 2007 at 03:17 UTC
Is it possible to do a search on the content of one or several fields in a CCK content type, and if so how? And if not then can this be a feature request?
Comments
Comment #1
fagoyeah it is, by using the views module and exposed filters.
Comment #2
martink commentedBut this sounds as if I have to set up, in effect, a different "search" function on my web site for each CCK content type. In other words, it dos not integrate with the standard site search.
In addition, I would have a question about performance. As I understand it, the different CCK "fields" are actually kept as serialised arrays in a single field in a CCK node - is this right? If that is the case, then is it possible to index the contents of a CCK field or are you forced to do a complete table scan and analyse every field as you go along? I imagine this would be a killer performance-wise.
Comment #3
fagono, CCK creates appropriate tables for each content type. just have a look at your database.
and yes there is no integration into the site search
Comment #4
markdingemanse commentedSo does this mean that the content I feed into custom content types will be invisible to the standard site search? In some setups that can be a serious problem.
Comment #5
hswong3i commentedthey will appear within search result: as contain within body. this means that you can search them out, but can't filter them due to your custom field.
e.g. if you create a field call "company" within your custom content to hold the company information, the information will just seems to be within node body, but you won't have a select box/options/ajax autocomplete/etc for you to filter the search result due to this "company" field.
i face this problem, too. and so i implement another search function, as like as what node_search do, for my cck contents. please take node_search as example ;-)
Comment #6
moshe weitzman commentedAdd a tab or elements to search page so that we can search on 'company', as suggested earlier.
Comment #7
hswong3i commented