# How to assign each word's weight in a query?

**URL:** https://discuss.elastic.co/t/how-to-assign-each-words-weight-in-a-query/272430
**Category:** Elasticsearch
**Created:** [May 7, 2021, 2:04pm UTC](https://discuss.elastic.co/t/how-to-assign-each-words-weight-in-a-query/272430 "2021-05-07T14:04:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![xiaoma](https://avatars.discourse-cdn.com/v4/letter/x/45deac/32.png) [@xiaoma](https://discuss.elastic.co/u/xiaoma)
#### Post date: [May 7, 2021, 2:04pm UTC](https://discuss.elastic.co/t/how-to-assign-each-words-weight-in-a-query/272430/1 "2021-05-07T14:04:20Z")

</div>

hello guys, I want to assign different weight for each words in a query (i have an important word set)

For example:  
Query : "the elastic guide book" ,  
the word "elastic " is supposed to an important word, which weight is 0.6, "guide" weight is 0.2 ...

i think this is a term weight problem.

---

<div class="post-metadata">

### Author: ![xiaoma](https://avatars.discourse-cdn.com/v4/letter/x/45deac/32.png) [@xiaoma](https://discuss.elastic.co/u/xiaoma)
#### Post date: [May 8, 2021, 9:37am UTC](https://discuss.elastic.co/t/how-to-assign-each-words-weight-in-a-query/272430/2 "2021-05-08T09:37:21Z")

</div>

up~~~

---

<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: [May 8, 2021, 11:53am UTC](https://discuss.elastic.co/t/how-to-assign-each-words-weight-in-a-query/272430/3 "2021-05-08T11:53:22Z")

</div>

Please be patient in waiting for responses to your question and refrain from pinging multiple times asking for a response or opening multiple topics for the same question. This is a community forum, it may take time for someone to reply to your question. For more information please refer to the [Community Code of Conduct](https://www.elastic.co/community/codeofconduct) specifically the section "Be patient". Also, please refrain from pinging folks directly, this is a forum and anyone that participates might be able to assist you.

If you are in need of a service with an SLA that covers response times for questions then you may want to consider talking to us about a [subscription](https://www.elastic.co/subscriptions).

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

---

<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: [June 5, 2021, 11:54am UTC](https://discuss.elastic.co/t/how-to-assign-each-words-weight-in-a-query/272430/4 "2021-06-05T11:54:13Z")

</div>

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