# Relevance tuning in platform search -scoring profile

**URL:** https://discuss.elastic.co/t/relevance-tuning-in-platform-search-scoring-profile/326938
**Category:** Elasticsearch
**Created:** [March 3, 2023, 12:46pm UTC](https://discuss.elastic.co/t/relevance-tuning-in-platform-search-scoring-profile/326938 "2023-03-03T12:46:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Arumugam](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Arumugam](https://discuss.elastic.co/u/Arumugam)
#### Post date: [March 3, 2023, 12:46pm UTC](https://discuss.elastic.co/t/relevance-tuning-in-platform-search-scoring-profile/326938/1 "2023-03-03T12:46:06Z")

</div>

We would like to define the weight by default for some fields and those weight criteria applied for search query. We want to same functionality that's available in App Search(Relevance tuning) in platform search. For example, we can set weight/boost value between 1 to 10 for few fields by default and then score will calculate based search filter/query criteria.

In our case, weight/boost would be defined for year field as 7, stocktype as 6, make as 5 and model as 4 by default. Without defining any field value like make =”audi” and define only weight value. Consider if query returns 10 documents based search criteria and result order would be based on weight criteria defined(year:7, stocktype:6, make:5).

{  
"size": 10,  
"query": {  
"function\_score": {  
"query": {  
"match": {  
"make": "audi"  
}  
},  
"boost": "5",  
"functions": [  
{  
"filter": {  
"terms": {  
"stocktype": [  
"new",  
"used",  
"cpo"  
]  
}  
},  
"weight": 20  
},  
{  
"filter": {  
"terms": {  
"make": [  
"audi",  
"bmw"  
]  
}  
},  
"weight": 42  
}  
],  
"max\_boost": 50,  
"boost\_mode": "multiply"  
}  
},  
"sort": [  
{  
"\_score': {  
"order": "desc"  
}  
}  
]  
}

---

<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: [March 31, 2023, 12:46pm UTC](https://discuss.elastic.co/t/relevance-tuning-in-platform-search-scoring-profile/326938/2 "2023-03-31T12:46:30Z")

</div>

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