You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by "fenbox (via GitHub)" <gi...@apache.org> on 2024/03/04 03:04:23 UTC
Re: [I] Highlighting Matched words in Search Results [incubator-answer]
fenbox commented on issue #804:
URL: https://github.com/apache/incubator-answer/issues/804#issuecomment-1975571002
> not sure if text-danger is the right choice maybe `background-color: var(--bs-highlight-bg)` is better?
Search engines like Google often change text colors, which may conflict with the browser's default page search colors if using a background color.
> but the backend doesn't give any info on the indices of word matches. So will this be purely a frontend change? maybe a small ts function that takes search words, excerpt text and question text and produces highlights.
I think frontend matching is enough.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org