# How do I set tie\_breaker parameter to a float value (e.g. 0.1) using MultiMatchQueryBuilder?

**URL:** <https://discuss.elastic.co/t/how-do-i-set-tie-breaker-parameter-to-a-float-value-e-g-0-1-using-multimatchquerybuilder/11113>\
**Category:** Elasticsearch\
**Created:** [March 12, 2013, 3:49pm UTC](https://discuss.elastic.co/t/how-do-i-set-tie-breaker-parameter-to-a-float-value-e-g-0-1-using-multimatchquerybuilder/11113 "2013-03-12T15:49:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Kouba](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@Jan\_Kouba](https://discuss.elastic.co/u/Jan_Kouba)\
**Post date:** [March 12, 2013, 3:49pm UTC](https://discuss.elastic.co/t/how-do-i-set-tie-breaker-parameter-to-a-float-value-e-g-0-1-using-multimatchquerybuilder/11113/1 "2013-03-12T15:49:12Z")

</div>

Hi,

how do I set tie\_breaker parameter to a float value (e.g. 0.1) when  
using org.elasticsearch.index.query.MultiMatchQueryBuilder?  
MultiMatchQueryBuilder has tieBreaker(Integer) method, but no  
tieBreaker(float) method (DisMaxQueryBuilder has tieBreaker(float) method.)  
Is this a bug, or is there some mapping from Integer to float?

Thanks,  
Jan Kouba

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [March 13, 2013, 12:47pm UTC](https://discuss.elastic.co/t/how-do-i-set-tie-breaker-parameter-to-a-float-value-e-g-0-1-using-multimatchquerybuilder/11113/2 "2013-03-13T12:47:19Z")

</div>

On Tue, 2013-03-12 at 08:49 -0700, Jan Kouba wrote:

> Hi,
> 
> how do I set tie\_breaker parameter to a float value (e.g. 0.1) when  
> using org.elasticsearch.index.query.MultiMatchQueryBuilder?  
> MultiMatchQueryBuilder has tieBreaker(Integer) method, but no  
> tieBreaker(float) method (DisMaxQueryBuilder has tieBreaker(float)  
> method.) Is this a bug, or is there some mapping from Integer to  
> float?

That's a bug - I've pushed a fix to master

> <https://github.com/elastic/elasticsearch/issues/2772>
>
> In multiMatchQueryBuilder, tieBreaker is an integer, but it should be a float

clint

> Thanks,  
> Jan Kouba
> 
> --  
> You received this message because you are subscribed to the Google  
> Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send  
> an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Jan\_Kouba](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@Jan\_Kouba](https://discuss.elastic.co/u/Jan_Kouba)\
**Post date:** [March 13, 2013, 1:07pm UTC](https://discuss.elastic.co/t/how-do-i-set-tie-breaker-parameter-to-a-float-value-e-g-0-1-using-multimatchquerybuilder/11113/3 "2013-03-13T13:07:30Z")

</div>

Thank you!

Any chance this fix will be included in 0.20 branch?

On Wednesday, March 13, 2013 1:47:19 PM UTC+1, Clinton Gormley wrote:

> That's a bug - I've pushed a fix to master
> 
> [tieBreaker in multiMatch should be a float, not an integer · Issue #2772 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2772)
> 
> clint

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:46am UTC](https://discuss.elastic.co/t/how-do-i-set-tie-breaker-parameter-to-a-float-value-e-g-0-1-using-multimatchquerybuilder/11113/4 "2017-07-06T02:46:44Z")

</div>


