Advanced search

I like the simple search of ferret; I would like to take this one step
further and do an advanced search; the user will type in key words and
use a drop down box to select the location; now how to pass this
location_id to the ferret search so it searches key words only on
matching records with same location_id?

thanks