rubyonrailsin

A Ruby and Rails talk

Wednesday, March 31, 2010


[Rails] Re: Advice on Search Design

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

I researched searchlogic prior to posting and unless I am missing
something I don't see how it would get around something like this:

if a,b & c but not d
...
elsif a & b but not c & d
....
elsif a and not b,c & d


I did see something construct a mysql query, based on something like:

query = ""
if a then query << ""
if b then query << ""
if c then query << ""
if d then query << ""

but they also stated this was a bad idea...


Am I missing something within the searchlogic doc?
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive