Forum: Ferret search by column

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sam (Guest)
on 2007-05-01 02:47
Hi

How can I search by concrete column in model?

For example I want to ba able to search only titles of posts. (and I
should be able to search bodies of posts too, of course)

thanx, Sam
Doug S. (Guest)
on 2007-05-01 02:55
(Received via mailing list)
In your query, enter the field name, followed by a colon like so:

q = "title:my title"
This topic is locked and can not be replied to.