First time here? Check out the FAQ!
3

Search bar does not work correctly

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.

Toms's avatar
767
Toms
asked 2012-07-16 15:36:15 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2012-12-21 19:59:25 -0500
edit flag offensive 0 remove flag close merge delete

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's avatar Evgeny (2012-11-26 16:05:32 -0500) edit

@Evgeny Thank you for your efforts!

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

Is this feature implemented?

Nikhil's avatar Nikhil (2013-12-11 13:41:21 -0500) edit

Yes it is implemented.

Evgeny's avatar Evgeny (2013-12-11 14:19:15 -0500) edit

Great, thanks! Just curious though, how come it doesn't start searching until 4 characters are entered ? Is this configurable? By searching I mean, we see the loading symbol and a drop down appears

Nikhil's avatar Nikhil (2013-12-11 14:23:26 -0500) edit
add a comment see more comments

1 Answer

0

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
Evgeny's avatar
13.2k
Evgeny
answered 2012-07-16 17:27:40 -0500
edit flag offensive 0 remove flag delete link

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's avatar 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's avatar 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's avatar 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's avatar Toms (2012-07-17 15:18:58 -0500) edit

True, will check this soon.

Evgeny's avatar Evgeny (2012-07-17 15:29:04 -0500) edit
add a comment see more comments