# Multiple search using ajax

**URL:** <https://www.ruby-forum.com/t/multiple-search-using-ajax/155197>\
**Category:** Rails\
**Created:** [December 9, 2008, 9:54am UTC](https://www.ruby-forum.com/t/multiple-search-using-ajax/155197 "2008-12-09T09:54:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Post date:** [December 9, 2008, 9:54am UTC](https://www.ruby-forum.com/t/multiple-search-using-ajax/155197/1 "2008-12-09T09:54:09Z")

</div>

hi ,

I have an application to search table entries using ajax helper:  
the table tnries are :

name resolution framerate bitrate :

in controller i have code like:

@streams= Stream.find(  
:all,  
:conditions =\> [  
( ["(LOWER(name) LIKE ?)"] \* terms.size ).join(" AND "),  
\* terms.flatten  
]  
)

1)using this i am able to only the name entries in the name  
column.Here if i want to fearch for multiple entries eg :name and  
resolution .how can i do that.  
2)and i have tags to the each table entry if i use tag name as search  
entry wher exactly i have to modify the code?

can give me some to proceed.

thanks  
srikanth
