# Searching with quoted term doesn't highlight the whole term

**URL:** <https://meta.discourse.org/t/searching-with-quoted-term-doesnt-highlight-the-whole-term/31954>\
**Category:** Bug\
**Created:** [10 Agosto 2015, 2:00pm UTC](https://meta.discourse.org/t/searching-with-quoted-term-doesnt-highlight-the-whole-term/31954 "2015-08-10T14:00:56Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [20 Luglio 2017, 9:00pm UTC](https://meta.discourse.org/t/searching-with-quoted-term-doesnt-highlight-the-whole-term/31954/8 "2017-07-20T21:00:44Z")

</div>

Done per:

 ![](https://global.discourse-cdn.com/meta/original/3X/e/f/ef1635d6578b22f4847899d456f4c304f64bc6d5.png)

per:

[https://github.com/discourse/discourse/commit/0791d740a634a70cb8ffb7f762f1a31353560209](https://github.com/discourse/discourse/commit/0791d740a634a70cb8ffb7f762f1a31353560209)

I changed it so we only match whole words, centralized the highlighting code and deal with exact terms.

---

_[View the full topic](https://meta.discourse.org/t/searching-with-quoted-term-doesnt-highlight-the-whole-term/31954)._
