# ANN: Indexed Search Engine 0.2.1 Released

**URL:** <https://www.ruby-forum.com/t/ann-indexed-search-engine-0-2-1-released/80196>\
**Category:** Engines\
**Created:** [March 13, 2006, 5:26am UTC](https://www.ruby-forum.com/t/ann-indexed-search-engine-0-2-1-released/80196 "2006-03-13T05:26:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lanceball](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5f9b8f/32.png) [@lanceball](https://www.ruby-forum.com/u/lanceball)\
**Post date:** [March 13, 2006, 5:26am UTC](https://www.ruby-forum.com/t/ann-indexed-search-engine-0-2-1-released/80196/1 "2006-03-13T05:26:47Z")

</div>

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](http://lance.langwell-ball.com/pages/indexed-search)

Enjoy!

---

<div class="post-metadata">

**Author:** ![lanceball](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5f9b8f/32.png) [@lanceball](https://www.ruby-forum.com/u/lanceball)\
**Post date:** [March 13, 2006, 6:27am UTC](https://www.ruby-forum.com/t/ann-indexed-search-engine-0-2-1-released/80196/2 "2006-03-13T06:27:06Z")

</div>

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!
