Ask Your Question
2

Best practice for customizing search behavior?

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

theactiveactor gravatar image theactiveactor
147 7 2 6

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.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
2

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

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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?

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 37 times

Last updated: Jul 08 '12