This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Search issues

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53132
    ajaypunatar_5dlKajaypunatar_5dlK
    Participant

    HI, I’m having a couple of issues with the plugin right now,

    • Results arent highlighted on the results page sometimes (search mahavira gets highlights vs rsabha where it doesnt highlight the word)
    • The select all checkbox doesnt unselect when you use any of the other checkboxes in the list

    I’m also trying to get a result counter working in the filters so that users can see how many results there are per each post type and possibly even hide post types in the filter list with 0 results.

    Is it possible to highlight synonym words as well as the search word?

    Thanks

    #53137
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    1. It happens only when the text is not available on the results page excerpts. I have enabled the search results override feature, so the same results are placed on the results page. Now it should be okay.

    2. I have tried the checkboxes, but it seems to work all right on my end: https://i.imgur.com/djFpG9W.png

    I’m also trying to get a result counter working in the filters so that users can see how many results there are per each post type and possibly even hide post types in the filter list with 0 results.
    I’m afraid there is no such feature for that.

    Is it possible to highlight synonym words as well as the search word?
    Unfortunately synonyms can’t be highlighted, only the search phrase that was entered.

    #53148
    ajaypunatar_5dlKajaypunatar_5dlK
    Participant

    With the select all checkbox, normally people would expect that as soon as you uncheck any of the other ones it won’t show as checked as not all the fields are checked.

    As in it should only be checked when all of the other options are checked, and as soon as someone unchecks a filter it should show as unchecked.

    Is that not how it’s supposed to work?

    #53153
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yes of course, sorry I was not clicking the “select all”.

    The reason is, that the whole page is live loaded, including the search, which resets under that condition. This can be fixed by either turning off the live loader, or using this DOM selector here to only reload the results part:
    #content>.row>.col:not(.post-sidebar)

    That should do the trick.

    #53221
    ajaypunatar_5dlKajaypunatar_5dlK
    Participant

    If I use the DOM selector, the filters disappear from the page when I search for something else on the page.

    #53230
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Indeed. To resolve this, I have added an additional container in the theme search.php file, so that the results are properly isolated: https://i.imgur.com/cFUX9BM.png
    After that, I have added the selector to the live search feature, now it should be much better.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.