# More\_like\_this custom boosting

**URL:** <https://discuss.elastic.co/t/more-like-this-custom-boosting/125613>\
**Category:** Elasticsearch\
**Created:** [March 26, 2018, 1:23pm UTC](https://discuss.elastic.co/t/more-like-this-custom-boosting/125613 "2018-03-26T13:23:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabioel](https://avatars.discourse-cdn.com/v4/letter/f/8dc957/32.png) [@fabioel](https://discuss.elastic.co/u/fabioel)\
**Post date:** [March 26, 2018, 1:23pm UTC](https://discuss.elastic.co/t/more-like-this-custom-boosting/125613/1 "2018-03-26T13:23:19Z")

</div>

Hello!  
I was wondering if it is possible to individually boost terms within a document passed to a `more_like_this query`?  
I would like to do something similar as in `MultiMatchQuery`, where I can use `^N` to boost a specific field value by the factor of `N` .

```auto
GET /_search
{
  "query": {
    "multi_match" : {
      "query" : "this is a test",
      "fields" : ["subject^3", "message"] 
    }
  }
}

```

The documentation of `more_like_this` suggests that you can only boost the entire document with `boostTerms`, like this:

```auto
curl -XGET 'localhost:9200/test/_search?pretty&explain=true' -H 'Content-Type: application/json' -d
         ' 
         {     
         	"query": {         
         		"more_like_this" : { 
         		            "like" : [
         		            {
         		            "_index": "test",
         		             "_type": "doc",
         		             "doc": {
         		             	"state": "FOO",
         		             	"type": "BAR"
         		             	}
         		             	 }
         		            ],        
         		            "min_term_freq" : 1, 
         		            "max_query_terms" : 12,
         		            "boost_terms": 300
         		            }     
         		     }
         } '

```

Would it be possible to combine the `more_like_this` into the `BooleanQuery` or `MultiMatchQuery`?  
Or is there any other way to achieve individual term boosting in a `more\_like\_this´query, when using documents?

---

<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:** [April 23, 2018, 1:23pm UTC](https://discuss.elastic.co/t/more-like-this-custom-boosting/125613/2 "2018-04-23T13:23:21Z")

</div>

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