<div>Hi Wolfgang,<br><br>at least ferret will work perfectly well for you. <br><br>Let
your photo-model 'acts_as_ferret' and make acts_as_ferret index a
method named eg 'all_tags' which returns a comma (or tab or whatever)
seperated string of your tags on this photo. Now you'll be able to
constructs a query as described in the rdocs of the QueryParser of
ferret that includes your tags and should be very performant.
<br><br>Cheers,<br></div><div><span class="sg">Jan</span></div><br><br><div><span class="gmail_quote">On 7/2/06, <b class="gmail_sendername">Wolfgang Borgon</b> <<a href="mailto:wborgon@gmail.com">wborgon@gmail.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm looking for a good way to search a few fields accross multiple<br>asociated tables (
i.e. find 'friends and family' accross <a href="http://Photo.name">Photo.name</a>,<br>Photo.description, and <a href="http://Tags.name">Tags.name</a> where Photo has_many tags). And,<br>ideally there's a competent query analyzer/parser.
<br><br>I've expirimented with constructing my own SQL using ... LIKE %term1%<br>... etc, but the performance is poor -- queries take seconds or more<br>depending on the number of terms.<br><br>Will acts_as_ferret work for me? Any recommendations?
<br>Thanks!<br><br>--<br>Posted via <a href="http://www.ruby-forum.com/">http://www.ruby-forum.com/</a>.<br>_______________________________________________<br>Ferret-talk mailing list<br><a href="mailto:Ferret-talk@rubyforge.org">
Ferret-talk@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/ferret-talk">http://rubyforge.org/mailman/listinfo/ferret-talk</a><br></blockquote></div><br>