# Is it possible to create term search from URI?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-create-term-search-from-uri/160280>\
**Category:** Elasticsearch\
**Created:** [December 11, 2018, 3:31am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-term-search-from-uri/160280 "2018-12-11T03:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okproject](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/okproject/32/38315_2.png) [@okproject](https://discuss.elastic.co/u/okproject)\
**Post date:** [December 11, 2018, 3:31am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-term-search-from-uri/160280/1 "2018-12-11T03:31:13Z")

</div>

Hi.

I know the term search faster than full text search.

So i can create a full text search query like this :

[http://myserver:9200/myindex/\_doc/\_search/?\_source=false&request\_cache=true&q=kategori\_Id=12](http://myserver:9200/myindex/_doc/_search/?_source=false&request_cache=true&q=kategori_Id=12)

But kategori\_Id field is just an Id and it can be faster with exact match term search, is that correct ?

If it is how to create term search from URI ?

Thanks.

---

<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:** [December 11, 2018, 7:09am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-term-search-from-uri/160280/2 "2018-12-11T07:09:37Z")

</div>

You can't. But if the field is indexed as a keyword data type and you search with `?q=kategori_id:12` it should be fast.

Otherwise just use the QueryDSL to have a full control of what is run.

---

<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:** [January 8, 2019, 7:09am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-term-search-from-uri/160280/3 "2019-01-08T07:09:41Z")

</div>

Closed on January 8, 2019, 7:09am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
