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 7 years, 2 months ago.
- AuthorPosts
- July 7, 2016 at 5:29 pm #9428
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!
July 8, 2016 at 8:50 am #9438Hi!
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-Ual3wl08sIs that not working for you?
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 8, 2016 at 8:54 am #9440You cannot access this content.July 8, 2016 at 9:16 am #9442Oh, 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 :)
July 8, 2016 at 9:31 am #9444You cannot access this content.July 8, 2016 at 9:45 am #9446You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.