# Boost levels for fields with same name

**URL:** <https://discuss.elastic.co/t/boost-levels-for-fields-with-same-name/99156>\
**Category:** Elasticsearch\
**Created:** [September 1, 2017, 5:23pm UTC](https://discuss.elastic.co/t/boost-levels-for-fields-with-same-name/99156 "2017-09-01T17:23:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilherme\_maranhao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guilherme_maranhao/32/101483_2.png) [@guilherme\_maranhao](https://discuss.elastic.co/u/guilherme_maranhao)\
**Post date:** [September 1, 2017, 5:24pm UTC](https://discuss.elastic.co/t/boost-levels-for-fields-with-same-name/99156/1 "2017-09-01T17:24:00Z")

</div>

Hi everybody,

I have the following mapping:

```
{
    object_1: {
          properties: {
               field_name: {
                   type: "text",
                   index_options: "offsets",
                   analyzer: "my_analyzer"
               }
          }
    },
    object_2: {
          properties: {
               field_name: {
                   type: "text",
                   index_options: "offsets",
                   analyzer: "my_analyzer"
               }
          }
    }
}

```

My query is defined as:

```
query: {
{
     query_string: {
             query: "search_term",
              fields: [
                   object_1.field_name^4,
                   object_2.field_name^2
               ]
     }
}

```

The fact that both objects contain a field with the same name "field\_name", will the boost setting work properly? Documents that contain "search\_term" on object\_1.field\_name will have the same score that documents that contain "search\_term" on object\_2.field\_name or will elasticsearch apply the boost differently?

Thanks, Guilherme

---

<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 29, 2017, 5:29pm UTC](https://discuss.elastic.co/t/boost-levels-for-fields-with-same-name/99156/2 "2017-09-29T17:29:26Z")

</div>

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