Forum: Rails Engines ANN: Indexed Search Engine 0.2.1 Released

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.
D046cca1a33655b6285065ec89711389?d=identicon&s=25 Lance Ball (Guest)
on 2006-03-13 05:26
(Received via mailing list)
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!
D046cca1a33655b6285065ec89711389?d=identicon&s=25 Lance Ball (Guest)
on 2006-03-13 06:27
(Received via mailing list)
Doh!  Make that 0.2.2

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
end

Mea culpa!
This topic is locked and can not be replied to.