# What if the value is about an URL like http://google.com in the filed, then is it possible to search the query to exact filter?

**URL:** https://discuss.elastic.co/t/what-if-the-value-is-about-an-url-like-http-google-com-in-the-filed-then-is-it-possible-to-search-the-query-to-exact-filter/41704
**Category:** Elasticsearch
**Created:** [February 13, 2016, 11:32pm UTC](https://discuss.elastic.co/t/what-if-the-value-is-about-an-url-like-http-google-com-in-the-filed-then-is-it-possible-to-search-the-query-to-exact-filter/41704 "2016-02-13T23:32:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![shilong](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@shilong](https://discuss.elastic.co/u/shilong)
#### Post date: [February 13, 2016, 11:32pm UTC](https://discuss.elastic.co/t/what-if-the-value-is-about-an-url-like-http-google-com-in-the-filed-then-is-it-possible-to-search-the-query-to-exact-filter/41704/1 "2016-02-13T23:32:59Z")

</div>

What if the value is about an URL like [http://google.com](http://google.com) in the filed, then is it possible to search the query to exact filter?

GET index/type/\_search  
{  
"size": 20,  
"query": {  
"match": {  
"url": "[http://google.com](http://google.com)"  
}  
}  
}

i think it didn't work for my search (query and filter), any one can help me look at this? Thank you!!!

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 14, 2016, 4:50am UTC](https://discuss.elastic.co/t/what-if-the-value-is-about-an-url-like-http-google-com-in-the-filed-then-is-it-possible-to-search-the-query-to-exact-filter/41704/2 "2016-02-14T04:50:30Z")

</div>

I'd change the mapping and not analyze the field.

---

<div class="post-metadata">

### Author: ![shilong](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@shilong](https://discuss.elastic.co/u/shilong)
#### Post date: [February 16, 2016, 5:43pm UTC](https://discuss.elastic.co/t/what-if-the-value-is-about-an-url-like-http-google-com-in-the-filed-then-is-it-possible-to-search-the-query-to-exact-filter/41704/3 "2016-02-16T17:43:17Z")

</div>

Thank you , I will try it out!!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 11:15pm UTC](https://discuss.elastic.co/t/what-if-the-value-is-about-an-url-like-http-google-com-in-the-filed-then-is-it-possible-to-search-the-query-to-exact-filter/41704/4 "2017-07-05T23:15:59Z")

</div>


