# Boost in query\_string

**URL:** <https://discuss.elastic.co/t/boost-in-query-string/146683>\
**Category:** Elasticsearch\
**Created:** [August 30, 2018, 11:10am UTC](https://discuss.elastic.co/t/boost-in-query-string/146683 "2018-08-30T11:10:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirtash](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@Kirtash](https://discuss.elastic.co/u/Kirtash)\
**Post date:** [August 30, 2018, 11:10am UTC](https://discuss.elastic.co/t/boost-in-query-string/146683/1 "2018-08-30T11:10:16Z")

</div>

Hi!

Is possible get that the score in a query\_string with fields multiply for field? I have this search:

```
    {
      "query_string": {
        "fields": ["town","city"], 
        "query": "girondens",
        "analyze_wildcard": true,
        "boost": 2
      }
    }

```

The max score of the documents is 2 but I want that the score to be 4 if I have the string girondens in the field city and town, is possible do it?

I know that if you separate in 2 query string works, but i want this result in a one query\_string

Thanks!!

---

<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:** [September 27, 2018, 11:18am UTC](https://discuss.elastic.co/t/boost-in-query-string/146683/2 "2018-09-27T11:18:16Z")

</div>

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