<p>Before Craft saves any keywords in the <code>craft_searchindex</code> table in the database, that content goes through a normalization process, including things like removing punctuation.</p>

<p>So the link "<a href="http://bit.ly/1eZFQMY" rel="nofollow noreferrer">http://bit.ly/1eZFQMY</a>" will actually get normalized to <code>http bit ly 1ezfqmy</code>.</p>

<p>If you really wanted to find all entries with bitly URLs in them, then using <code>"http bit ly"</code> should work.</p>

CC BY-SA 4.0
2018-07-06T18:33:14.960Z
2018-07-06T18:33:14.960Z
Brad Bell
<p>I'm trying to find using <a href="https://docs.craftcms.com/v2/searching.html" rel="nofollow noreferrer">craft search</a> "bitly" urls in body rich-text field in articles. It's for generation of list of popular articles.
So if query is a link (like "<a href="http://bit.ly/1eZFQMY" rel="nofollow noreferrer">http://bit.ly/1eZFQMY</a>") search doesn't find anything.</p>

<p>Tried "fuzzy" search and all methods listed on <a href="https://docs.craftcms.com/v2/searching.html" rel="nofollow noreferrer">craft search</a> page.</p>

<craft3><search>
Search for href parameter in rich text field
# Search for href parameter in rich text field

(Asked by: username_0 on 2018-07-06)

I'm trying to find using [craft search](https://docs.craftcms.com/v2/searching.html) "bitly" urls in body rich-text field in articles. It's for generation of list of popular articles.
So if query is a link (like "<http://bit.ly/1eZFQMY>") search doesn't find anything.

Tried "fuzzy" search and all methods listed on [craft search](https://docs.craftcms.com/v2/searching.html) page.

**Tags:** craft3, search

---

## 1 answers

### Answer by username_1 on 2018-07-06. Score: 1

Before Craft saves any keywords in the `craft_searchindex` table in the database, that content goes through a normalization process, including things like removing punctuation.

So the link "<http://bit.ly/1eZFQMY>" will actually get normalized to `http bit ly 1ezfqmy`.

If you really wanted to find all entries with bitly URLs in them, then using `"http bit ly"` should work.


---

