WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Search doesn't seem to work (7 posts)

  1. mwrmwr
    Member
    Posted 4 years ago #

    Maybe I don't understand how the WP search is supposed to work, but when I enter the title of one of my blog articles into the WP search area and press Enter, I get "No posts found. Try a different search?". Shouldn't it bring up that blog article as a search result? Am I missing something here?

    http://ca-bankruptcylaw.com

  2. ClaytonJames
    Member
    Posted 4 years ago #

    Search on your site seems to be working for me. My keyword searches were:
    bankruptcy, returned 10 results, fresh start, returned 3 results, video, returned 2 results, case for bankruptcy, 3 results, including the article titled "The case for bankruptcy" Seems okay from here.

  3. mwrmwr
    Member
    Posted 4 years ago #

    Thanks! I've now tried searching on all of the blog article titles, both partial and full titles, and find they work OK except for:

    - Don’t wait too long (no results)
    - Can’t I just transfer the title of my car to my sister (no results)
    - I just filed bankruptcy. Where’s my money (search results show Home page only; using - I just filed bankruptcy - gets both the Home page and article page).

    Can you think of anything that would cause this inconsistency?

  4. ClaytonJames
    Member
    Posted 4 years ago #

    I'm thinking maybe the number of key search words has limitations, although I have no actual documentation to back it up.

    try these:

    wait too long

    just filed bankruptcy

    Where’s my money

    ...all good returns for me. I thought it might be related to the use of contractions in a search phrase at first, but that doesn't seem to matter. 3 words in a search phrase seems to be the limit. Interesting. I never noticed before.

    Best wishes.

    [Edit]

    well, there goes that theory. I just tried "Can’t I just", and got nothing, yet "transfer the title" does the trick!

    I hope you're laughing as hard as I am, 'cause I don't have a clue!!

    Sorry about that...

  5. mwrmwr
    Member
    Posted 4 years ago #

    Actually, you got it right. It doesn't like the contractions. Everything seems to work OK except for the contractions. I'll keep testing to see if that's really true.

    I just ran more tests and the search works fine except when one of the contractions is present.

    Has anyone run into this before?

  6. mwrmwr
    Member
    Posted 4 years ago #

    There's another thread on this at http://wordpress.org/support/topic/209967 and it's on point.

    It was the fact that WP converted straight apostrophes to a curly quote which the WP search doesn't like. The thread linked to above also says that Google doesn't like curly quotes but I didn't try that to see. I installed the Unfancy Quote plugin ( http://wordpress.org/extend/plugins/sem-unfancy-quote ) and the problem immediately went away. WP now displays the plain apostrophes as plain apostrophes and the search works fine on the contractions.

  7. illufoxdesign
    Member
    Posted 4 years ago #

    I had problems too. My searches all went to the home page instead a search results page. So I looked at the code from a site where the search was working and found out that I had this missing:

    name="s"

    So I changed this:

    <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" id="s" size="15" />

    to this:

    <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" />

    And voila, the search is working!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.