I’m attempting to apply conditional params to a thinking sphinx search.
This is what im trying to achieve (psuedo(ish) code).
I realise this is probably a dumb question or that i’m going about it in the wrong way. But any help would be great.
DistributerGame.search :conditions => {:game_genre => @genre *** IF PARAMS[GENRE] EXISTS ***}, :with => {:distributer_id => @distributer_id *** if PARAMS[DISTRIBUTER] EXISTS ***, :price_in_gbp => @price *** if PARAMS[PRICE] EXISTS ***}
Thanks,
Matt
You could do something like this:
To persevere your
paramsover different pages: