ANN: Indexed Search Engine 0.2.1 Released


#1

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!


#2

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!