# Keyword Search Scoring

**URL:** https://discuss.elastic.co/t/keyword-search-scoring/181316
**Category:** Elasticsearch
**Created:** [May 16, 2019, 6:34am UTC](https://discuss.elastic.co/t/keyword-search-scoring/181316 "2019-05-16T06:34:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Choo\_Kar\_Chun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/choo_kar_chun/32/46266_2.png) [@Choo\_Kar\_Chun](https://discuss.elastic.co/u/Choo_Kar_Chun)
#### Post date: [May 16, 2019, 6:34am UTC](https://discuss.elastic.co/t/keyword-search-scoring/181316/1 "2019-05-16T06:34:27Z")

</div>

Hello! Is there any way to get the relevancy score for keyword/partial searches?

This is my mapping code:

URL: /vacancy  
{  
"mappings": {  
"properties": {  
"vacancy\_join": {  
"type": "join",  
"relations": {  
"employer": "vacancy"  
}  
},  
"location": {  
"type": "geo\_point"  
},  
"posted\_date": {  
"type": "date"  
}   
}  
}  
}

This is my data entry using PUT method:

/vacancy/\_doc/1?routing=1  
{  
"occupation\_title":"Tech Support",  
"skills":["Information Technology"],  
"unit\_group\_code":"2519",  
"min\_salary": 3000,  
"max\_salary": 4500,  
"location\_name":"location ABC",  
"location":"3.0587,101.6917",  
"occupation\_type":"full\_time",  
"posted\_date": "1556264385124",  
"vacancy\_join":{"name":"vacancy","parent":1}  
}

For example, in scenario where the "occupation\_title" is "Tech Support", if I type "Tec", it should display "Tech Support" result with a lower score.

But if I type "Tech Sup", it should display the same result but with higher score.

I've look into wildcard query doc here: [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html)

But it seems to be giving me a constant score of 1, regardless of how many characters I typed, which is not what I wanted.

Is there any way to achieve this? Appreciate if you guys can advise.

---

<div class="post-metadata">

### Author: ![Choo\_Kar\_Chun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/choo_kar_chun/32/46266_2.png) [@Choo\_Kar\_Chun](https://discuss.elastic.co/u/Choo_Kar_Chun)
#### Post date: [May 16, 2019, 6:35am UTC](https://discuss.elastic.co/t/keyword-search-scoring/181316/2 "2019-05-16T06:35:01Z")

</div>

Btw, I'm using Elasticsearch 7.0

---

<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: [June 13, 2019, 6:35am UTC](https://discuss.elastic.co/t/keyword-search-scoring/181316/3 "2019-06-13T06:35:09Z")

</div>

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