# Not able to select different scoremodel for function\_score

**URL:** <https://discuss.elastic.co/t/not-able-to-select-different-scoremodel-for-function-score/83636>\
**Category:** Elasticsearch\
**Created:** [April 26, 2017, 2:51am UTC](https://discuss.elastic.co/t/not-able-to-select-different-scoremodel-for-function-score/83636 "2017-04-26T02:51:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajendra\_gj](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@rajendra\_gj](https://discuss.elastic.co/u/rajendra_gj)\
**Post date:** [April 26, 2017, 2:51am UTC](https://discuss.elastic.co/t/not-able-to-select-different-scoremodel-for-function-score/83636/1 "2017-04-26T02:51:36Z")

</div>

I am extending ScoreFunction to implement function score. while instantiating the object I am setting up the type of score model as follows

ScoreBoostFunction(QueryParseContext queryParseContext, List fieldBoostEntryList,  
float defaultBoost, float boostFactor, Modifier modifierType) {  
super(CombineFunction.REPLACE);

What ever combine function i choose, it is always defaulting to multiply. Can you please let me know if this is a know bug ?

I am using elastic search 2.3.3 version.

thanks,  
Rajendra

---

<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:** [May 24, 2017, 3:06am UTC](https://discuss.elastic.co/t/not-able-to-select-different-scoremodel-for-function-score/83636/2 "2017-05-24T03:06:01Z")

</div>

Closed on May 24, 2017, 3:06am UTC

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