I have a simple "advice" question.
In my Rails App I am using Sunspot to perform searches across 2 models in my application - users and questions. Naturally when you think about this, there are several permutations to what a user might be looking for...
looking for a user by name
looking for questions posted by a specific user
3 looking for questions on a certain topic
- looking for questions with certain content.
Right now, the search returns all the relevant results on the term, so if I search for Johnny X, it returns a link to his profile, a whole load of questions he posted and even posts that reference him.
This I thought was pretty rubbish....you need the info organised in some way. So I thought of returning all whole lot but on the results page having pills or tabs that would say something like
"Limit search to members" "Limit search to content" "Limit search to content by a member"
This still feels pretty rubbish.
If I limited my search to just one model then it would be easier, but really I want an all-encompassing search..
Advice needed....I hope I have explained the problem.