# Need help with search relevance settings

**URL:** <https://discuss.elastic.co/t/need-help-with-search-relevance-settings/214845>\
**Category:** Elasticsearch\
**Created:** [January 13, 2020, 1:49pm UTC](https://discuss.elastic.co/t/need-help-with-search-relevance-settings/214845 "2020-01-13T13:49:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@boost](https://discuss.elastic.co/u/boost)\
**Post date:** [January 13, 2020, 1:49pm UTC](https://discuss.elastic.co/t/need-help-with-search-relevance-settings/214845/1 "2020-01-13T13:49:53Z")

</div>

Hello! I started getting acquainted with elasticsearch, and had some difficulties with setting up search relevance settings.

analyzer:  
'settings' =\> [  
'number\_of\_shards' =\> 1,  
'number\_of\_replicas' =\> 0,  
'analysis' =\> [  
'analyzer'=\> [  
'rebuilt\_standard' =\> [  
'tokenizer' =\> 'standard',  
'char\_filter' =\> ['html\_strip'],  
'filter' =\> [  
'asciifolding',  
'lowercase',  
'word\_delimiter'  
]  
]  
]  
]  
],

search query:

```
{
 "sort" : {
   "_score": {"order": "desc"}
 },
   "size" : 5,
 "query": {
   "bool": {
     "must": {
       "match": {
         "name": {
           "query": "Shameless s10e10",
           "operator": "and"
         }
       }
     }
   }
 }
}'

```

Main problem is that when searching for " **Shameless s10e10**", queries like **"Shameless s10e09**", " **Shameless s10e07**" are also included in the results.

Is it possible to receive exact results only for **Shameless s10e10** query? Thanks!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 13, 2020, 2:15pm UTC](https://discuss.elastic.co/t/need-help-with-search-relevance-settings/214845/2 "2020-01-13T14:15:28Z")

</div>

Welcome!

Change your analyzer as the one you are using is most likely breaking your string `s10e10` into multiple tokens.  
The `_analyze` API will tell you that.

---

<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:** [February 10, 2020, 2:15pm UTC](https://discuss.elastic.co/t/need-help-with-search-relevance-settings/214845/3 "2020-02-10T14:15:34Z")

</div>

Closed on February 10, 2020, 2:15pm UTC

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