# Multiple matches

**URL:** <https://discuss.elastic.co/t/multiple-matches/62650>\
**Category:** Elasticsearch\
**Created:** [October 10, 2016, 5:38pm UTC](https://discuss.elastic.co/t/multiple-matches/62650 "2016-10-10T17:38:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul2](https://avatars.discourse-cdn.com/v4/letter/p/df705f/32.png) [@paul2](https://discuss.elastic.co/u/paul2)\
**Post date:** [October 10, 2016, 5:38pm UTC](https://discuss.elastic.co/t/multiple-matches/62650/1 "2016-10-10T17:38:57Z")

</div>

I can't find docs where I can specify multiple matches...theres 2 fields I want to match...transactiontype and fullAddress. transactionType is an exact match and fullAddress could have the postcode anywhere in the address

{  
"from": 0,  
"size": 10,  
"match": {  
"transactionType": "LEASE"  
},  
"match\_phrase\_prefix": {  
"fullAddress": "BS22"  
},  
"sort": [{  
"transactionDate": {  
"order": "desc"  
}  
}]  
}

The matches work seperately but not together...I know there are plenty of matches but it comes up as an error

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [October 11, 2016, 11:05am UTC](https://discuss.elastic.co/t/multiple-matches/62650/2 "2016-10-11T11:05:29Z")

</div>

Hi,

try combining the two match queries as two clauses inside a [Bool Query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html). It looks like you don't need scoring, so putting them inside the "filter" should work.

---

<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:13pm UTC](https://discuss.elastic.co/t/multiple-matches/62650/3 "2017-07-05T22:13:27Z")

</div>


