More_like_this custom boosting

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 .

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:

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?

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