# Edge ngram boosting

**URL:** <https://discuss.elastic.co/t/edge-ngram-boosting/39062>\
**Category:** Elasticsearch\
**Created:** [January 13, 2016, 6:52am UTC](https://discuss.elastic.co/t/edge-ngram-boosting/39062 "2016-01-13T06:52:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siegdubhy](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@siegdubhy](https://discuss.elastic.co/u/siegdubhy)\
**Post date:** [January 13, 2016, 6:52am UTC](https://discuss.elastic.co/t/edge-ngram-boosting/39062/1 "2016-01-13T06:52:00Z")

</div>

Hi,  
I have built an index for address searching. All address data goes to single field hooked up to an edge ngram analyzer (I set min: 1, max: 25)... It doesn't work bad, but it could work a lot better.  
The problem that I have is this:  
For indexed values:  
FooXXXXXX  
FooBarXXX  
FooBarBaz  
When I multi\_match search for FooBarBaz (fuzziness: 0) the index will return all 3 results with not big enough a score difference.  
I understand why it does so, but is there any way for it to boost the score of FooBarBaz document (over the ones found using part of the token) more than it does now?  
That would be a case of boosting documents that are at least as long as the query token (not shorter).

---

<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:** [July 5, 2017, 11:25pm UTC](https://discuss.elastic.co/t/edge-ngram-boosting/39062/2 "2017-07-05T23:25:02Z")

</div>


