# 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:** 9

<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:03pm UTC](https://meta.discourse.org/t/searching-with-quoted-term-doesnt-highlight-the-whole-term/31954/9 "2017-07-20T21:03:26Z")

</div>

One interesting edge case here is that the `really` being in italics in your post breaks the algorithm.

Cause we match the index and then try to match raw, we are going to have to change it to try to do the exact match on a normalized text only version of the post.

---

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