Kind of boneheaded to add an :any and :all search type option without exposing it in the engine's configuration. You can now set this option in your application with code like this:
module IndexedSearchEngine
config :search_type, :all
endMea culpa!
On 3/12/06, Lance Ball <[EMAIL PROTECTED]> wrote:The latest release of the indexed search engine has a minor change, allowing you to do either "AND" searches or "OR" searches. The search method has been modified to take an options parameter.
For example, a search such as
IndexableRecord::search("foo bar", :type => :all)would return indexed records that contained both "foo" and "bar" in the indexed content.
A search such as
IndexableRecord::search("foo bar", :type => :any)would return indexed records that contained either "foo" or "bar" in the indexed content.
For more information, to read the docs, browse the source, or download the code check out the project page at http://lance.langwell-ball.com/pages/indexed-search
Enjoy!
--
Lance Ball
http://lance.langwell-ball.com
--
Lance Ball
http://lance.langwell-ball.com
_______________________________________________ engine-users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
