I put this in as a feature request
http://drupal.org/node/77143

I would like to be able to search by specific fields. For example, in the field, "languages spoken" I'd like to find all users who speak Chinese. I don't want a general search of the site.

What is the possibility of getting this in cck in terms of whether it's technically possible? I am willing to put in some money. I have no idea how many hours this will take. I imagine it's quite difficult.

Or would I be better off writing a custom module? I want to launch by August 31st. I want to preserve the flexibility to modify my node types going forward, which is why I'd rather sponsor it in cck than as a custom module.

Comments

jasonwhat’s picture

If you use the views module you can choose cck fields to filter by. Currently these would only work as selector fields, but I'm sure there is a way to make it more searchabel. I think it is about time to talk about a Views search module to handle this kind of stuff.

mwu’s picture

putting it in views instead of cck is an interesting idea.

selector fields won't work because I might have 300 to 1000 possibilities.

mwu’s picture

I realized an intermediate solution might be to provide a node template with additional fields.

lines can be commented out.
the lines would contain placeholders.

it could say something like
to add another variable, put the name of the variable here, type here, etc.

to make an index for it,
uncomment this line and put the name of the variable.

blah blah.

mwu’s picture

with my minimal knowledge, I would think it's better for performance to build it in the node than in views. (I think I've read that views can be hard on performance, and it certainly makes intuitive sense that it's faster to search something built to be searched than to search something not built to be searched.)

performance is important for my purposes.