Did you look through the code in the controller of the sample app I created with simple/advanced search options? Is that approach not going to suit what you’re doing? https://github.com/pat/thinking-sphinx-examples/blob/master/app/controllers/articles_controller.rb <https://github.com/pat/thinking-sphinx-examples/blob/master/app/controllers/articles_controller.rb>
> On 5 Dec 2014, at 4:40 am, C Wilson <[email protected]> wrote: > > Can't believe I didn't think to use `to_s` since I did that with other parts > in my app! > > With that said it is not accomplishing what I set out to do (I never > establish my reasoning in the original post). > > Using gsub(/\s+/, ' | ') will allow me to string keywords together. I know > this because originally my coded appeared like this: > > @users = User.search(params[:search].gsub(/\s+/, ' | ') > > But now with further developing the app I am adding more search capabilities > so that the website is more user friendly. I added preselect search options > which uses @users = User.search(params[:query] . I am not able to use both at > the same time, which is why I was trying to add gsub to my query params to > see if that would do the trick. That way users can opt to do manual search or > select options to search. I guess in lamest terms, simple search and advanced > search. I have simple search working separately. And when I replace the code > with advanced search, then the advanced search is working properly. I just > can't manage to get them both to function at the same time under the index > action. > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/thinking-sphinx > <http://groups.google.com/group/thinking-sphinx>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.
