简体   繁体   中英

Rails 3.0 - is there a built-in search functionality in any of ActiveRecord classes?

I'm kind of new to rails - I'm currently learning by developing a web-app, similar to the Agile Rails book (with iteration and all).

Knowing rails, I know there's a great way to search in the database. So my question simply is: what is the good way to do so? - the rails way.

Search criteria are classics (keywords in sentences, strings, ...) AND a "near" search.

We're using Sphinx here. It's a fulltext search engine, if you're looking for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM