Ask Your Question
3

Search bar does not work correctly

asked 2012-07-16 15:36:15 -0500

Toms gravatar image Toms
661 18 6 34

updated 2012-12-21 19:59:25 -0500

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

Search bar does not work correct.

If I click on some question and try to search I don't get search results but only the list of all questions. If I try to search on the main page everything is OK.

Tested here and elsewhere.

Edit:

The search bar problem is still there. It is impossible to search, except on the main page. This is an important issue, scince if a user comes from google (in 99% it is some non-main-page) and reads an answer then he often tries to find something similar on the website, but he doesn't get the result. Then you lost this visitor.

delete close flag offensive retag edit

Comments

1

We are going to change the way search works, hopefully in a couple of weeks you will be able to see that, it will work more like in Quora - in a dropdown. Also, the first stage of search will be run only against question titles and later tags. Current search will work as "second stage" - as full content search, there won't be a full page refresh during the time you type into the search bar.

Evgeny ( 2012-11-26 16:05:32 -0500 )edit

@Evgeny Thank you for your efforts!

Toms ( 2012-11-28 09:50:12 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-16 17:27:40 -0500

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

If you are using PostgresQL, then you need to switch manually the language code in the full text search setup.

In the directory: askbot/search/postgresql/ find latest dated postgresql scripts and change 'english' to 'russian'. You may have to look up documentation about this (postgresql full text search). Please tell what works for you.

After you change the file - run management command:

python manage.py init_postgresql_full_text_search
link publish delete flag offensive edit

Comments

It is not only for russian. it is for every language. check it here (don't go to the main page, do it in the above search box): type "higgs boson" in the search box and you will see all questions - not only the questions with "higgs boson"

Toms ( 2012-07-17 14:59:09 -0500 )edit

Ok, I see. The thing is that the "search as you type" feature refreshes page only if there are any results - done on purpose, because otherwise the screen will be "blinking" too much. I think that in order to fix this - we'd have to redo that feature. If you hit the "search" button - you will get a blank page on higgs boson. (well not now - as we already have those keywords here).

Evgeny ( 2012-07-17 15:07:16 -0500 )edit

Actually - I am searching for some unrelated words and and am getting blank page - I should take some of my words back.

Evgeny ( 2012-07-17 15:08:27 -0500 )edit
1

I get the blank page, which is correct, for the search query "tttttttttttttttttttttttt" only on the main page : http://askbot.org/en/questions/ . if I try it from the above search box I get the full list of all questions, which is not the expected functionality

Toms ( 2012-07-17 15:18:58 -0500 )edit

True, will check this soon.

Evgeny ( 2012-07-17 15:29:04 -0500 )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
3 followers

subscribe to rss feed

Stats

Asked: 2012-07-16 15:36:15 -0500

Seen: 153 times

Last updated: Nov 25 '12