WordPress.org

Forums

WP1.5.2 thinks it's searching but actually it's not. Search does NOT work... (10 posts)

  1. podstava
    Member
    Posted 9 years ago #

    ... at least on my site. Try for example to search for MAZDA. It will return nothing. But here is the link for the article with this word: http://www.autopodstava.ru/?p=77.

    Any ideas?

  2. podstava
    Member
    Posted 9 years ago #

    The site is in Russian. The search form is above the banner.

  3. planetthoughtful
    Member
    Posted 9 years ago #

    Hi,

    No real ideas. I notice that the search is working, just not for the search term "MAZDA". To prove that, I copied another word in the same article (don't speak Russian, so don't know what the word was) and pasted it into the search box on your front page and the search returned three entries that matched that word.

    I wonder if this is more a MySQL issue? Maybe a collation conflict? Do you have something like phpMyAmin (or other way of running queries against the db) available?

    If so, what happens when you run the following query directly against the db?

    SELECT * FROM wp_posts WHERE post_content LIKE '%MAZDA%'

    Does that return a result?

    Much warmth,

    planetthoughtful

  4. podstava
    Member
    Posted 9 years ago #

    I'll try it a bit later and let you know.

    Mazda is only an example. It does not search for many other words also.

    I don't think it is good when it searches successfully for one word and ignores another. Don't you think so? :(

  5. planetthoughtful
    Member
    Posted 9 years ago #

    I agree it would be frustrating, but I'm not sure it's specifically a WordPress issue. I can't see why WP would successfully execute some searches, and not others.

    I may be being utterly ignorant with this question, but are any of the other words you have problems with Russian words (ie using the Russian alphabet) or are they all English words (ie using the English alphabet, as in "MAZDA")?

    Much warmth,

    planetthoughtful

  6. podstava
    Member
    Posted 9 years ago #

    Search for "audi" works but now I'm not sure it finds all the appearances of this word in my articles. One of the articles found with audi query has also word Lexus in it but if I search for Lexus or lexus it returns only one articles and it is not the one that contains audi along with Lexus.

    It also fails to search for some digits. It would take long to find the correct article but I am absolutely sure that there's one with 929 in its text. Search returns nothing.

    Some searches with russian words that definetely exist in articles on my site are also return nothing, but I can't remember those words right now. :(

    (Sorry for my bad English)

  7. podstava
    Member
    Posted 9 years ago #

    Opel is also ignored. It seems WP hates cars! :)

  8. podstava
    Member
    Posted 9 years ago #

    phpMyAdmin 2.3.3pl1 finds MAZDA and other unsearcheable words with no problem.

  9. nearlythere
    Member
    Posted 9 years ago #

    i read somewhere about it only searching for titles.. and not in the body of the post. if you have opel/mazda as post title, does it find them?

    i've also read general problems with WP's search function. it does not search pages, and it's not very relevant. maybe try either of two plugins:

    http://www.semiologic.com/projects/search-reloaded/

    http://randomfrequency.net/wordpress/search-pages/

    ... at least to see if your problem persists!

  10. alex-and-r
    Member
    Posted 9 years ago #

    I've got the same problem, but with WP 2.0.1.

    I've got a blog in russian and native WP search doesn't work properly when i try to search for words in russian. When i search for words in english (like "web") the search operates quite well, but with russian words it fails - it simply displays all the posts.

    I installed above mentioned plugin, Search Reloaded, but that didn't help me.

    May be the problem is in encodings? My blog is in UTF and mysql database which i use for wp is in WIN1251. So may be i need to encode the search terms to WIN from UTF before querying the database?
    If so, can someone point me to the place in code where i need to do it?

Topic Closed

This topic has been closed to new replies.

About this Topic