# How to construct request body for multiple values,ranges and multiple fields,with different operators

**URL:** <https://discuss.elastic.co/t/how-to-construct-request-body-for-multiple-values-ranges-and-multiple-fields-with-different-operators/48110>\
**Category:** Elasticsearch\
**Created:** [April 22, 2016, 1:25am UTC](https://discuss.elastic.co/t/how-to-construct-request-body-for-multiple-values-ranges-and-multiple-fields-with-different-operators/48110 "2016-04-22T01:25:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhavani](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bhavani](https://discuss.elastic.co/u/bhavani)\
**Post date:** [April 22, 2016, 1:25am UTC](https://discuss.elastic.co/t/how-to-construct-request-body-for-multiple-values-ranges-and-multiple-fields-with-different-operators/48110/1 "2016-04-22T01:25:06Z")

</div>

HI,

I would like to construct request body for the following conditions.  
Title should match either of "title1" or "title2" or "title3" ...  
and  
CreatedDate should be in the range from : 2016/01/01 to 2016/04/20  
and  
tagname should be either of "tag1" or "tag2"

tagnames can be any number ( count may be 1 to 10).

Please provide some sample query /body on how to create object with multiple operators and ,or

---

<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:56pm UTC](https://discuss.elastic.co/t/how-to-construct-request-body-for-multiple-values-ranges-and-multiple-fields-with-different-operators/48110/2 "2017-07-05T22:56:52Z")

</div>

Closed on July 5, 2017, 10:56pm UTC


