# Multi-phrase multi-field match

**URL:** <https://discuss.elastic.co/t/multi-phrase-multi-field-match/135952>\
**Category:** Elasticsearch\
**Created:** [June 14, 2018, 3:06pm UTC](https://discuss.elastic.co/t/multi-phrase-multi-field-match/135952 "2018-06-14T15:06:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fish/32/19628_2.png) [@Fish](https://discuss.elastic.co/u/Fish)\
**Post date:** [June 14, 2018, 3:06pm UTC](https://discuss.elastic.co/t/multi-phrase-multi-field-match/135952/1 "2018-06-14T15:06:45Z")

</div>

I want to search any one of multiple phrases across multiple fields. If it is one field, I can do as below:

```auto
GET my_index/_search
{
    "query": {
        "bool":{
          "should":[
        {"match_phrase" : {"text" : "cloud computing"}},
        {"match_phrase" : {"text" : "supply chain"}},
        {"match_phrase" : {"text" : "analytics"}},
        {"match_phrase" : {"text" : "big data"}}
        ]
    }
      }}

```

How can I do it across all the fields in the index?

---

<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 12, 2018, 3:06pm UTC](https://discuss.elastic.co/t/multi-phrase-multi-field-match/135952/2 "2018-07-12T15:06:49Z")

</div>

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