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

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9428
    kognitowebkognitoweb
    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 MarcinkoErnest 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?

    #9440
    kognitowebkognitoweb
    Participant

    You cannot access this content.

    #9442
    Ernest MarcinkoErnest 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:

    [code]<em>Marco Wanderwitz</em>[/code]

    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.

    #9444
    kognitowebkognitoweb
    Participant

    You cannot access this content.

    #9446
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

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