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

How to i highlight the matched keyword?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How to i highlight the matched keyword?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #39128
    kennypurnomokennypurnomo
    Participant

    How to highlight the result keyword that matches the search keyword?

    In my case is “BRIO”

    #39139
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    You can do that via the keyword highlight feature.

    #39143
    kennypurnomokennypurnomo
    Participant

    It is not highlighting “brio”. This is weird. Please see this video https://www.loom.com/share/035746d978374413a35a4b6cc10a6b24

    Also how can i improve the loading speed?

    #39145
    Ernest MarcinkoErnest Marcinko
    Keymaster

    If the keyword is not within the visible context, it will not be highlighted. It is also possible, that the keyword was not matched at all, since you are using the “OR” keyword logic as I can see from the video.

    Check this documentation to get the best possible search performance.

    #39146
    kennypurnomokennypurnomo
    Participant

    Yes “Brio” might not be in the product title but definitely it is in the product description.

    #39147
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I understand. However if the keyword is further down the description (further than the short description length), then it simply does not fit into the view.

    #39151
    kennypurnomokennypurnomo
    Participant

    Nono, i definitely have “Brio” in the primary description as well.

    Something is off with my setup.

    Please advise

    #39156
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I understand – but the description field has a maximum length set here. If the matching keywords are further away from each other, they may not fit into that.
    Ex. “kampas” is in the first sentence, and the “brio” is 20 lines lower, it will not fit into the default 130 characters. Try increasing that length, but that of course will lead to more lengthy result descriptions.

    #39177
    kennypurnomokennypurnomo
    Participant

    As you can see in the attachment, i have “Primary Description Field for Posts/Pages/CPT” filled with “car_type” where car type is something like “Brio CBU DD2 1.3, Brio Satya DD1, Brio Satya New DD1, City GD8 IDSI, City GD8 VTEC, Civic Estilo SR3, Civic Genio SR4, Jazz GD3 IDSI, Jazz GD3 VTEC”

    1. How can this (“Brio”) not be found?
    2. How the plugin determines which to show between PRIMARY and SECONDARY description?

    #39183
    Ernest MarcinkoErnest Marcinko
    Keymaster

    It does not mean it was not found. It only means, that the word is not on the screen for the highlighter to highlight it. If you increase the description lenght, then more of the results description text will be visible. If the word “brio” is within this text, then the plugin will highlight it.

    By default the Primary field is displayed, if the primary field is empty, then it will use the secondary field.

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