# Can exact match get higher score than modified by character filter?

**URL:** <https://discuss.elastic.co/t/can-exact-match-get-higher-score-than-modified-by-character-filter/296622>\
**Category:** Elasticsearch\
**Created:** [February 8, 2022, 3:31pm UTC](https://discuss.elastic.co/t/can-exact-match-get-higher-score-than-modified-by-character-filter/296622 "2022-02-08T15:31:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spotlight2001](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spotlight2001/32/54078_2.png) [@spotlight2001](https://discuss.elastic.co/u/spotlight2001)\
**Post date:** [February 8, 2022, 3:31pm UTC](https://discuss.elastic.co/t/can-exact-match-get-higher-score-than-modified-by-character-filter/296622/1 "2022-02-08T15:31:49Z")

</div>

I have a custom analyzer which consists of several char\_filter

When I have indexed "walter" and "walther"  
and search for "walther" I would expect to have "walther" result to be of higher score than "walter". But it has the same score. How can I boost the exact match?

v7.16.3

---

<div class="post-metadata">

**Author:** ![Brian\_McGue](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_mcgue/32/63366_2.png) [@Brian\_McGue](https://discuss.elastic.co/u/Brian_McGue)\
**Post date:** [February 12, 2022, 12:01am UTC](https://discuss.elastic.co/t/can-exact-match-get-higher-score-than-modified-by-character-filter/296622/2 "2022-02-12T00:01:35Z")

</div>

Hi @spotlight2001,

I think you meant to post this in the Elasticsearch community forum rather than the Enterprise Search one. I've gone ahead and moved this post, but please correct me if I'm wrong.

Cheers,  
Brian

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 12, 2022, 1:33pm UTC](https://discuss.elastic.co/t/can-exact-match-get-higher-score-than-modified-by-character-filter/296622/3 "2022-02-12T13:33:27Z")

</div>

I found several related posts.  
Have you see them?

> [@Exact matches have same score as fuzzy matches](https://discuss.elastic.co/t/exact-matches-have-same-score-as-fuzzy-matches/211451):
>
> Hi When executing match queries with fuzziness applied we are seeing exact matches have the same score as fuzzy matches. I have come across suggested solutions to promote exact matches by including additional queries which carry out an exact match and boosting those queries, these are here [Custom score for fuzzy matching based on Levenshtein distance score](https://discuss.elastic.co/t/custom-score-for-fuzzy-matching-based-on-levenshtein-distance-score/125544/2) and here [Fuzziness & score computation](https://discuss.elastic.co/t/fuzziness-score-computation/16492). We are currently using Elasticsearch 7.4, is this still the recommended solution or has anything f…

> [@Custom score for fuzzy matching based on Levenshtein distance score](https://discuss.elastic.co/t/custom-score-for-fuzzy-matching-based-on-levenshtein-distance-score/125544/2):
>
> The [match query accepts a fuzziness parameter](https://www.elastic.co/guide/en/elasticsearch/guide/current/fuzzy-match-query.html) which allows you to do fuzzy matching based on the Damerau-Levenshtein edit distance (see the explanation for the fuzziness parameter in our docs [here](https://www.elastic.co/guide/en/elasticsearch/guide/current/fuzziness.html)). Now, two things to keep in mind with fuzziness: the maximum edit distance that Elasticsearch supports is 2, so Smith and SSmithhh will never be a match. And, the default scoring is not quite how you want it to be. However, if a maximum edit distance of 2 is enough for your use case, then you can u…

---

<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 12, 2022, 1:34pm UTC](https://discuss.elastic.co/t/can-exact-match-get-higher-score-than-modified-by-character-filter/296622/4 "2022-03-12T13:34:11Z")

</div>

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