# How can i do a multiple search query?

**URL:** <https://discuss.elastic.co/t/how-can-i-do-a-multiple-search-query/60374>\
**Category:** Elasticsearch\
**Created:** [September 13, 2016, 11:46am UTC](https://discuss.elastic.co/t/how-can-i-do-a-multiple-search-query/60374 "2016-09-13T11:46:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [September 13, 2016, 11:46am UTC](https://discuss.elastic.co/t/how-can-i-do-a-multiple-search-query/60374/1 "2016-09-13T11:46:09Z")

</div>

I'm trying to get results of an index, by sending an `GET` http call from `Postman` for both date range and for a field **("log\_type")** which I added manually,

So for now I'm able to get the results, when i query it individually such as:

**Date Range** : [http://localhost:9200/dialog\_test/\_search?q=timestamp:[2016-08-05+TO+2016-08-06]](http://localhost:9200/dialog_test/_search?q=timestamp:%5B2016-08-05+TO+2016-08-06%5D)

**log\_type** : [http://localhost:9200/dialog\_test/\_search?q=log\_type:GetProvisioning%20SUCCESS](http://localhost:9200/dialog_test/_search?q=log_type:GetProvisioning%20SUCCESS)

In the url above (log\_type), `GetProvisioning Success` is a log\_type.

So what I wanted to know is, how can I combine both of them into a single query in order to identify, what're the results between a certain **date range** and with a specific **log\_type**?

Any help could be appreciated.

---

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [September 13, 2016, 1:23pm UTC](https://discuss.elastic.co/t/how-can-i-do-a-multiple-search-query/60374/2 "2016-09-13T13:23:16Z")

</div>

Found the answer, inserting an "AND" clause in between did the trick.

[http://localhost:9200/dialog\_test/\_search?q=timestamp:[2016-08-05+TO+2016-08-06]%20AND%20log\_type:GetProvisioning%20SUCCESS](http://localhost:9200/dialog_test/_search?q=timestamp:%5B2016-08-05+TO+2016-08-06%5D%20AND%20log_type:GetProvisioning%20SUCCESS)

---

<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, 10:20pm UTC](https://discuss.elastic.co/t/how-can-i-do-a-multiple-search-query/60374/3 "2017-07-05T22:20:42Z")

</div>


