Keyword Search Scoring

(Choo Kar Chun) #1

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:

"occupation_title":"Tech Support",
"skills":["Information Technology"],
"min_salary": 3000,
"max_salary": 4500,
"location_name":"location ABC",
"posted_date": "1556264385124",

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:

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.

(Choo Kar Chun) #2

Btw, I'm using Elasticsearch 7.0