# Achieving the two types in multi match query

**URL:** <https://discuss.elastic.co/t/achieving-the-two-types-in-multi-match-query/76482>\
**Category:** Elasticsearch\
**Created:** [February 25, 2017, 2:40pm UTC](https://discuss.elastic.co/t/achieving-the-two-types-in-multi-match-query/76482 "2017-02-25T14:40:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashit\_pupu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashit_pupu/32/101113_2.png) [@ashit\_pupu](https://discuss.elastic.co/u/ashit_pupu)\
**Post date:** [February 25, 2017, 2:40pm UTC](https://discuss.elastic.co/t/achieving-the-two-types-in-multi-match-query/76482/1 "2017-02-25T14:40:43Z")

</div>

Hi

I need to achieve a phrase match in multi match query at the same time want to ignore the idf of query phrase in "type" : "phrase". Though using the "type" : "cross\_fields" reduces the idf but the issue with it is apart from providing a exact match it also gives doc where there is a match of single term.  
Any help will be greatly appreciated.

Thanks and regards  
Ashit

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 27, 2017, 9:34am UTC](https://discuss.elastic.co/t/achieving-the-two-types-in-multi-match-query/76482/2 "2017-02-27T09:34:21Z")

</div>

Hey,

if you need to ignore the IDF, cant you put that query in a `filter` of a `bool` query? And put your scoring relevant query in the `must` or `should` part?

--Alex

---

<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:** [March 27, 2017, 9:34am UTC](https://discuss.elastic.co/t/achieving-the-two-types-in-multi-match-query/76482/3 "2017-03-27T09:34:22Z")

</div>

Closed on March 27, 2017, 9:34am UTC

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