highlight a word in the node text

Created on 18 April 2013, about 11 years ago
Updated 29 February 2024, 4 months ago

Dear all
Hi, I would like to know how to highlight a word in the node text, not only on the snippet. I try
http://URLname/search/site/([^&]+).*$
http://URLname /el/biblio/%/([^&]+).*$
however I cannot get it to work, also I would like to highlight words in Greek language, by default works only with English..
Thanks

πŸ’¬ Support request
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡ΎCyprus aavgoustinos

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States SomebodySysop

    Just a note, in case anyone else is looking to do this. I was able to get the search words highlighted in the node text by adding this in the Highlight referrer settings:

    ^https?:\/\/.+[&?]search_api_fulltext=([^&]+).*$

    I also added this to local search patterns:

    ^https?:\/\/.+\/node\/([0-9]+)$

    Not sure which does the trick, but both result in search terms being highlighted in node after I click on it in search results.

Production build 0.69.0 2024