# Score boost not working

**URL:** <https://discuss.elastic.co/t/score-boost-not-working/150974>\
**Category:** Elasticsearch\
**Created:** [October 4, 2018, 6:30am UTC](https://discuss.elastic.co/t/score-boost-not-working/150974 "2018-10-04T06:30:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![himanshu-kulkarni](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@himanshu-kulkarni](https://discuss.elastic.co/u/himanshu-kulkarni)\
**Post date:** [October 4, 2018, 6:30am UTC](https://discuss.elastic.co/t/score-boost-not-working/150974/1 "2018-10-04T06:30:26Z")

</div>

This is my **mapping** for my website search index.  
{  
"website4md": {  
"mappings": {  
"page": {  
"properties": {  
"content": {  
"type": "text",  
"fields": {  
"reverse": {  
"type": "text",  
"analyzer": "reverse"  
},  
"search": {  
"type": "text",  
"analyzer": "ngram"  
},  
"trigram": {  
"type": "text",  
"analyzer": "trigram"  
}  
}  
},  
"description": {  
"type": "text"  
},  
"headers": {  
"type": "text",  
"fields": {  
"reverse": {  
"type": "text",  
"analyzer": "reverse"  
},  
"search": {  
"type": "text",  
"analyzer": "ngram"  
},  
"trigram": {  
"type": "text",  
"analyzer": "trigram"  
}  
}  
},  
"linktext": {  
"type": "text",  
"fields": {  
"reverse": {  
"type": "text",  
"analyzer": "reverse"  
},  
"search": {  
"type": "text",  
"analyzer": "ngram"  
},  
"trigram": {  
"type": "text",  
"analyzer": "trigram"  
}  
}  
},  
"tags": {  
"type": "text",  
"analyzer": "standard",  
"search\_analyzer": "english"  
},  
"title": {  
"type": "text",  
"fields": {  
"reverse": {  
"type": "text",  
"analyzer": "reverse"  
},  
"search": {  
"type": "text",  
"analyzer": "ngram"  
},  
"trigram": {  
"type": "text",  
"analyzer": "trigram"  
}  
}  
},  
"url": {  
"type": "text"  
}  
}  
}  
}  
}  
}

I am trying to use this query to search through the index and I want to give importance to specific fields. (Like results where title matches should have a higher score.)

{  
"query": {  
"bool": {  
"must": {  
"multi\_match": {  
"query": "what is website",  
"fields": ["title.search^20","headers.search^15","linktext^10","content.search^10","url"]  
}  
},  
"should": {  
"multi\_match": {  
"query": "what is website",  
"fields": ["title^20", "headers^15","content^5"]  
}  
}  
}  
}  
}

I want to have some special field in my data called "tags" where if the searched keywords match with the tags the document should always be at the top in the results.

So I'm doing something like this...  
{  
"query": {  
"bool": {  
"must": {  
"multi\_match": {  
"query": "what is website",  
"fields": [**"tags^1000"** ,"title.search^20","headers.search^15","linktext^10","content.search^10","url"]  
}  
},  
"should": {  
"multi\_match": {  
"query": "what is website",  
"fields": [**"tags^1000"** ,"title^20", "headers^15","content^5"]  
}  
}  
}  
}  
}

But it is not affecting the score, the results are just like they were earlier.  
Can anyone please point out where I'm going wrong?

---

<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:** [November 1, 2018, 6:30am UTC](https://discuss.elastic.co/t/score-boost-not-working/150974/2 "2018-11-01T06:30:28Z")

</div>

Closed on November 1, 2018, 6:30am UTC

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