# Pre boost while indexing

**URL:** <https://discuss.elastic.co/t/pre-boost-while-indexing/122660>\
**Category:** Elasticsearch\
**Created:** [March 6, 2018, 7:33am UTC](https://discuss.elastic.co/t/pre-boost-while-indexing/122660 "2018-03-06T07:33:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kurzer\_Patrick](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kurzer\_Patrick](https://discuss.elastic.co/u/Kurzer_Patrick)\
**Post date:** [March 6, 2018, 7:33am UTC](https://discuss.elastic.co/t/pre-boost-while-indexing/122660/1 "2018-03-06T07:33:41Z")

</div>

I would like to know if there is a way to give some weights on documents like I can do for the complete suggestions.

Lets say I index two documents:

```
Gerogia
Germany

```

I will use the `edge_ngram tokenizer` to search in autocomplete mode. So If I search for `Ger` I will get both of the documents but `Germany` with a higher ranking.

Is there a way to do 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:** [April 3, 2018, 7:33am UTC](https://discuss.elastic.co/t/pre-boost-while-indexing/122660/2 "2018-04-03T07:33:46Z")

</div>

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