# How to Apply Hashmap in Elastic Search Query String Query

**URL:** <https://discuss.elastic.co/t/how-to-apply-hashmap-in-elastic-search-query-string-query/171913>\
**Category:** Elasticsearch\
**Created:** [March 12, 2019, 9:58am UTC](https://discuss.elastic.co/t/how-to-apply-hashmap-in-elastic-search-query-string-query/171913 "2019-03-12T09:58:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dipen\_Chawla](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@Dipen\_Chawla](https://discuss.elastic.co/u/Dipen_Chawla)\
**Post date:** [March 12, 2019, 9:58am UTC](https://discuss.elastic.co/t/how-to-apply-hashmap-in-elastic-search-query-string-query/171913/1 "2019-03-12T09:58:10Z")

</div>

I am having an issue as my requirements is to take the fields and text from the hashmap and apply the AND operator and OR operator between the Text and specific fields and fields and text can be multiple.

So anybody can help me to tell what to take steps for doing the fields and text from hashmap and putting into elastic search query with AND , OR operator?

---

<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:** [April 9, 2019, 9:58am UTC](https://discuss.elastic.co/t/how-to-apply-hashmap-in-elastic-search-query-string-query/171913/2 "2019-04-09T09:58:11Z")

</div>

Closed on April 9, 2019, 9:58am UTC

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