# How to create a search-agent

**URL:** <https://www.ruby-forum.com/t/how-to-create-a-search-agent/185701>\
**Category:** Rails\
**Created:** [March 24, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/how-to-create-a-search-agent/185701 "2010-03-24T19:55:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [March 24, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/how-to-create-a-search-agent/185701/1 "2010-03-24T19:55:19Z")

</div>

hi, im currently utilizing searchlogic.

now they want me to add a “searchagent”, meaning u can save your  
criterias  
and get notified whenever something suitable hits the database. am i  
correct  
that all i need to do is to store the searchlogic-params in a userfield  
and  
run a daily job to execute the search?  
or is there “more” to it?

thx for any advise  
tom

---

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [March 25, 2010, 5:12am UTC](https://www.ruby-forum.com/t/how-to-create-a-search-agent/185701/2 "2010-03-25T05:12:32Z")

</div>

I am also looking for the similar stuff where the criterias need to  
store in the database…

Please let me know if you get an reply…

---

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [March 25, 2010, 5:24am UTC](https://www.ruby-forum.com/t/how-to-create-a-search-agent/185701/3 "2010-03-25T05:24:50Z")

</div>

On Wed, Mar 24, 2010 at 11:54 AM, tom [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> now they want me to add a “searchagent”, meaning u can save your criterias  
> and get notified whenever something suitable hits the database. am i correct  
> that all i need to do is to store the searchlogic-params in a userfield and  
> run a daily job to execute the search?  
> or is there “more” to it?
> 
> thx for any advise

[http://xkcd.com/327/](http://xkcd.com/327/)🙂

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [March 25, 2010, 2:15pm UTC](https://www.ruby-forum.com/t/how-to-create-a-search-agent/185701/4 "2010-03-25T14:15:42Z")

</div>

funny. it seems the best route is to put the params aka find conditions  
into  
a another table (so a user can have several ), and then run a con job or  
similiar…

thx 4 cartoon!

On Thu, Mar 25, 2010 at 12:23 AM, Hassan S. \<
