# Bulksearch with multiple terms and multiple values

**URL:** <https://discuss.elastic.co/t/bulksearch-with-multiple-terms-and-multiple-values/291407>\
**Category:** Elasticsearch\
**Created:** [December 10, 2021, 9:33am UTC](https://discuss.elastic.co/t/bulksearch-with-multiple-terms-and-multiple-values/291407 "2021-12-10T09:33:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GopiSumanth](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@GopiSumanth](https://discuss.elastic.co/u/GopiSumanth)\
**Post date:** [December 10, 2021, 9:33am UTC](https://discuss.elastic.co/t/bulksearch-with-multiple-terms-and-multiple-values/291407/1 "2021-12-10T09:33:22Z")

</div>

Hi,  
Currently, we are using the below JSON for search in the _repository_ index. Here we are using one term with multiple values(list of values). Can we change the JSON to search using multiple terms by passing multiple values?

```auto
search_param = {

        "size": 10000,

        "query": {

            "terms": {

                "Chr": list(query_values) 

            }

        }

    }
es.search(index="repository", body=search_param)

```

regards,  
Gopi

---

<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 7, 2022, 9:34am UTC](https://discuss.elastic.co/t/bulksearch-with-multiple-terms-and-multiple-values/291407/2 "2022-01-07T09:34:14Z")

</div>

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