First time here? Check out the FAQ!

Best practice for customizing search behavior?

I'm looking to customize the default search behavior, to return additional results besides asked questions. Could you please recommend the cleanest way to do that, minimizing changes core Askbot code.

theactiveactor's avatar
asked 2012-07-07 23:08:30 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


Probably for this askbot should expose the search API and allow you to display search results combined from several sources.

There is no solution for this at the moment, but this could be part of askbot.

If you are willing to experiment with this - take a look at function askbot.models.question.ThreadManager.get_for_query(), there is also a more complex function in the same class called run_advanced_search().

Maybe you could implement this and make a pull request on the Github?

Evgeny's avatar
answered 2012-07-08 20:41:29 -0500
edit flag offensive 0 remove flag delete link


add a comment see more comments