Ask Your Question

Best practice for customizing search behavior?

asked 2012-07-07 23:08:30 -0600

theactiveactor's avatar

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-07-08 20:41:29 -0600

Evgeny's avatar

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?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-07-07 23:08:30 -0600

Seen: 210 times

Last updated: Jul 08 '12