Using Highlight Module with Default Search Module

27/07/2018


I’m trying to use this highlight module to highlight search terms on my site but can’t seem to get it to work. I’m using Drupal 7, the basic search module that comes with Drupal, and Views to display the search interface (and results).

I think the main issue has to do with inputting a correct JavaScript syntax (regex) for local searches but the example given in the screenshot on the module page (linked above) only shows regex for apache solr and I’m wondering if anyone know what I should use for the default search, or if its even possible?

Note: I’ve already changed the ‘Highlight area’ option on the highlight module configuration page to .search (which is the body class for my search view).

قالب وردپرس