does anyone how to customize search query>?

i wanted to customise the defaulte search to have my own fileds - based on teh user selecting the fields the query should dynamically pick up and return search. i need this to be done in ActiveScaffold plugin.

does any one know how to do this and share sample code?

--selvan