Search text in Visual Composer Accordion module

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search text in Visual Composer Accordion module

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9428
    kognitoweb
    kognitoweb
    Participant

    Hi,

    We realized that the Search engine is not searching in an Visual Composer module like “Accordion”, I also cant find a way to add it in the settings. How can I achieve this? The accordion shortcode is this: vc_tta_accordion

    For example the search phrase “Wanderwitz” on this page: http://www.kulturrat.de/publikationen/zeitung-pk/04-2015/
    You can try it here in the search: http://www.kulturrat.de/suche/

    Thanks!

    #9438
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I’ve looked at the page, but I cannot see the search in the accordion there.

    I have a copy of VC, and I’ve tried to add the search to the accordion, but it’s working for me correctly: https://youtu.be/hJhAXe4JAsg
    I just simply added the search widget to the accordion tabs on the back-end: https://youtu.be/w-Ual3wl08s

    Is that not working for you?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #9440
    kognitoweb
    kognitoweb
    Participant
    You cannot access this content.
    #9442
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Oh, sorry about that, I understand now.

    This is an interesting issue, but I have found the problem and the solution as well. The problem was that some of the words stored there in the accordion had HTML tags before/after them, and the search logic was set to “AND with exact keyword matches” + exact matches is turned on. For example the words Marco Wanderwitz are actually stored as:

    <em>Marco Wanderwitz</em>

    Therefore, the “em” tags as word boundaries were not recognized by the search query in the database, but as the part of the word. On database level there is no difference between HTML tags and words unfortunately.

    As a resolution I changed the keyword logic to simply “AND”, which resolves this problem, but keeps a fairly strict logic in case of exact matches and multiple keywords.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #9444
    kognitoweb
    kognitoweb
    Participant
    You cannot access this content.
    #9446
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.