# The right way to do a search with a lot (\>1000) of keywords

**URL:** <https://discuss.elastic.co/t/the-right-way-to-do-a-search-with-a-lot-1000-of-keywords/63491>\
**Category:** Elasticsearch\
**Created:** [October 20, 2016, 10:21am UTC](https://discuss.elastic.co/t/the-right-way-to-do-a-search-with-a-lot-1000-of-keywords/63491 "2016-10-20T10:21:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattttt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattttt/32/12613_2.png) [@mattttt](https://discuss.elastic.co/u/mattttt)\
**Post date:** [October 20, 2016, 10:21am UTC](https://discuss.elastic.co/t/the-right-way-to-do-a-search-with-a-lot-1000-of-keywords/63491/1 "2016-10-20T10:21:10Z")

</div>

Hi,

I'm planning on doing a search with a lot of keywords. I'm rather new to elasticsearch and the way I would do it would be:

```auto
GET /my_index/my_type/_search
{
  "query": {
    "bool": {
      "should": [
                  { "match": { 
                        "title": {
                             "query": "superKeyword1 superKeyword2", "boost": 2
                             } 
                         }
                  },
                  { "match": { 
                         "content": { "keyword1 keyword2 [...] keyword1000"}
                         }
                  },
            ]
       }
   }
}

```

**My question is** : Is this the right way for doing such a query with 1000+ keywords (especially in regard to the performances)?

One use case could be: _I have a contact list of 1000 people with first name, last name and email. I want to search my documents for the ones that potentially mention people in my contact list_

---

<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:10pm UTC](https://discuss.elastic.co/t/the-right-way-to-do-a-search-with-a-lot-1000-of-keywords/63491/2 "2017-07-05T22:10:56Z")

</div>


