# Searching for URLs doesn't work

**URL:** https://meta.discourse.org/t/searching-for-urls-doesnt-work/75978
**Category:** Feature
**Created:** [December 13, 2017, 6:09pm UTC](https://meta.discourse.org/t/searching-for-urls-doesnt-work/75978 "2017-12-13T18:09:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [December 13, 2017, 6:09pm UTC](https://meta.discourse.org/t/searching-for-urls-doesnt-work/75978/1 "2017-12-13T18:09:52Z")

</div>

This post includes the URL [http://example.org/path#anchor](http://example.org/path#anchor)

- Searching for the full URL gives no results: [Search results for 'http://example.org/path#anchor' - Discourse Meta](https://meta.discourse.org/search?q=http%3A%2F%2Fexample.org%2Fpath%23anchor)

- Same for the URL without the anchor: [Search results for 'http://example.org/path' - Discourse Meta](https://meta.discourse.org/search?q=http%3A%2F%2Fexample.org%2Fpath)

- Searching for only the domain name works: [https://meta.discourse.org/search?q=http%3A%2F%2Fexample.org%2F](https://meta.discourse.org/search?q=http%3A%2F%2Fexample.org%2F)

(The Google search result work as a valid fallback, but it would be still better if Discourse could return these posts) .

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [December 14, 2017, 12:27am UTC](https://meta.discourse.org/t/searching-for-urls-doesnt-work/75978/2 "2017-12-14T00:27:50Z")

</div>

I don’t think URL searching is supported at the current time, so this would be a feature request. The domain name is probably tokenized like language words. Is URL searching something postgres has support for @sam?

Note that using quotes does work, though

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/4/946eae4705b80c6641668039c50c28eaf64ebeed.png)

---

<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: [December 14, 2017, 12:30am UTC](https://meta.discourse.org/t/searching-for-urls-doesnt-work/75978/3 "2017-12-14T00:30:34Z")

</div>

Something is definitely off here cause that string should be tokenized.

---

<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: [December 19, 2017, 5:05am UTC](https://meta.discourse.org/t/searching-for-urls-doesnt-work/75978/5 "2017-12-19T05:05:42Z")

</div>

Nice bug report, this is fixed per:

[https://github.com/discourse/discourse/commit/57a1190b07b20d48e14e12f17a42d24b0acf37ce](https://github.com/discourse/discourse/commit/57a1190b07b20d48e14e12f17a42d24b0acf37ce)

Requires a re-index on broken posts (which you can do by editing)

---

<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: [December 20, 2017, 7:00am UTC](https://meta.discourse.org/t/searching-for-urls-doesnt-work/75978/6 "2017-12-20T07:00:06Z")

</div>

This topic was automatically closed after 25 hours. New replies are no longer allowed.
