I'm stuck on implementing some custom sort filters with Thinking Sphinx and hoping someone out there can help me figure this one out.
I have an ajax search page that allows you to search by, Name, Category and Tags (via acts_as_taggable) this is currently working fine. What I'm finding difficult to implement is the additional search filters. I am unclear on the best approach to implement this: 1. Most/Least Viewed 2. Highest/Lowest Rating (via thumbs_up) 3. Most/Least Reviews (via a comments model) 4. Time Frame (Day, Week, Month, Year) Here is what I have so far, it is quite long and could probably be refactored and shrunk a lot, uploading a GIST to show the code with nicer formatting. After it works I'll upload a public Thinking Sphinx test app with credits to anyone that can help me get this working, it will help me a ton and anyone else looking for more complex TS examples. Here is the Gist <https://gist.github.com/4014401> -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/alA0w94gsT4J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
