# Query string query seperate boost configure from fields

**URL:** <https://discuss.elastic.co/t/query-string-query-seperate-boost-configure-from-fields/133260>\
**Category:** Elasticsearch\
**Created:** [May 25, 2018, 6:21am UTC](https://discuss.elastic.co/t/query-string-query-seperate-boost-configure-from-fields/133260 "2018-05-25T06:21:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuhao\_zhang](https://avatars.discourse-cdn.com/v4/letter/y/fbc32d/32.png) [@yuhao\_zhang](https://discuss.elastic.co/u/yuhao_zhang)\
**Post date:** [May 25, 2018, 6:21am UTC](https://discuss.elastic.co/t/query-string-query-seperate-boost-configure-from-fields/133260/1 "2018-05-25T06:21:15Z")

</div>

Hi currently I am working on Elasticsearch 6.2.4 and using query string query.

From the documentation I know that I can boost result from specifing the fields like:

```
GET /_search
{
    "query": {
        "query_string" : {
            "fields" : ["entity^5","tag^2"],
            "query" : "this AND that OR thus"
        }
    }
}

```

However this will make the search engine just search against just my "entity" and "tag" field, other fields it will not search other fields.

Is there any way to make it search against all fields and boost the result score if the keywords appear in selected fields?

---

<div class="post-metadata">

**Author:** ![yuhao\_zhang](https://avatars.discourse-cdn.com/v4/letter/y/fbc32d/32.png) [@yuhao\_zhang](https://discuss.elastic.co/u/yuhao_zhang)\
**Post date:** [May 28, 2018, 6:47am UTC](https://discuss.elastic.co/t/query-string-query-seperate-boost-configure-from-fields/133260/2 "2018-05-28T06:47:23Z")

</div>

Anyone have ideas?

---

<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 8, 2018, 9:56am UTC](https://discuss.elastic.co/t/query-string-query-seperate-boost-configure-from-fields/133260/4 "2018-07-08T09:56:27Z")

</div>

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