WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
[resolved] Problems when using 3.3.1 or 3.3.2. (including Fatal Error) (6 posts)

  1. garymgordon
    Member
    Posted 4 months ago #

    When I upgraded to 3.3.1 and 3.3.2, I noticed the following:

    1. When I search for a word that doesn't exist, it spins and spins and after a few more seconds it displays a fatal error message. (But in v3.2, everything works fine.)

    2. When I search for a word (that is also in a title) the highlighted word appears in the body of the excerpt, but the word in the title isn't showing as highlighted. In v3.2 it works fine. But in 3.3.1 and 3.3.2, the title isn't being highlighted with the search term.

    3. The search appears much slower than it had been previously.

    After installing 3.3.2 today, I had to revert back to 3.2 in order to get it functioning properly.

    Can you assist with a fix to what I'm describing?

    Thanks,
    Gary

    https://wordpress.org/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 4 months ago #

    1. Known bug, 3.3.3 will fix this soon.

    2. Did you read the changelog? Title highlighting was moved to a separate function in 3.3 versions. You need to use relevanssi_the_title() instead of the_title() to get the highlighting now.

    3. Building excerpts is better, but slower. That may be the reason. How many search results are you showing on your search results pages? Is the search faster, if you disable custom excerpts?

  3. garymgordon
    Member
    Posted 4 months ago #

    Mikko,

    1. Great. Thanks.

    2. I am very confused. Are you telling me, that the regular use of <?php the_title(); ?> in WordPress (http://codex.wordpress.org/Function_Reference/the_title) isn't used? Do you mean, I'll have to change "manually" my themes coding .. to change this to relevanssi_the_title() instead? That's insane. Why? Pardon my opinion, but that will be a royal pain. Why, since it worked fine before, highlighting the titles, did you "NEED" to change this .. to require a manual changing of the PHP code. I really don't understand and I'm very confused. It's seems like a terrible decision and I'm curious why you felt this was necessary.

    3. Hopefully the slowness will be fine, once the bug fix is implemented. Only only have about 25 pages and there were maybe 25 or so results that were loading. So it's very small. (At least in this one site I was using.)

    I really hope you can consider changing back to use the_title() so manual changing of the php code in themes won't be necessary.

    Gary

  4. Mikko Saari
    Member
    Plugin Author

    Posted 4 months ago #

    2. Yes, you're correct. This needed to be changed, because the old way, using the_title() caused problems, because the same title was used in menus. So, you'd have highlighting in the menus sometimes.

    Adjusting one line of code in search results template from the_title() to relevanssi_the_title() IF you want to use title highlighting doesn't seem like too much to ask in my opinion, if it helps to avoid larger headaches with highlights appearing where they shouldn't.

  5. garymgordon
    Member
    Posted 4 months ago #

    Ok. I would have thought their might be a way to use CSS to not apply the highlighting when on the search results page, for the menu area since most menus (on that page) use something with nav or menu in a class or id tag. But I guess this is a sure fire way to handle it. Thanks for the explanation. PS: Correct me if I'm wrong, but this change in the search results template is only going to be necessary if you want the highlighting to appear on the "title" line. Is that right? Aside from that .. it's fine.

  6. Mikko Saari
    Member
    Plugin Author

    Posted 4 months ago #

    Yes, you only need to change to get the highlights in titles, highlights in excerpts still work as usual, with the usual the_excerpt().

    I suppose it would be possible to apply CSS in a way that limits the highlights from the menus, but not everybody uses the CSS class option in highlights, and the extra <span> tags might still interfere in the menus.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.