# Doubts about Multifields

**URL:** <https://discuss.elastic.co/t/doubts-about-multifields/301244>\
**Category:** Elasticsearch\
**Created:** [March 31, 2022, 6:16pm UTC](https://discuss.elastic.co/t/doubts-about-multifields/301244 "2022-03-31T18:16:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [March 31, 2022, 6:16pm UTC](https://discuss.elastic.co/t/doubts-about-multifields/301244/1 "2022-03-31T18:16:20Z")

</div>

Hi!  
Can anyone tell me if using the multifields strategy (strategy A) would be better than individually separating (strategy B) each field? What would be the advantages between one and the other?

Strategy A

```auto
{
  "title": {
    "type": "text",
    "fields": {
      "pt-br": {
        "type": "text",
        "analyzer": "brazilian"
      },
      "en": {
        "type": "text",
        "analyzer": "english"
      }
    }
  }
}

```

Strategy B

```auto
{
  "title_pt-br": {
    "type": "text",
    "analyzer": "brazilian"
  },
  "title_en": {
    "type": "text",
    "analyzer": "english"
  }
}

```

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [April 1, 2022, 8:30am UTC](https://discuss.elastic.co/t/doubts-about-multifields/301244/2 "2022-04-01T08:30:10Z")

</div>

From a storage perspective B would be better if the indexing client knows what language the doc uses and only sends one of the two possible values.

Option A works better if the indexing client doesn’t know the language of the doc so it is indexed 2 ways (note the root ‘title’ in your example will also be indexed using the default ‘standard’ analyzer so this 3rd way may be a waste)

---

<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 29, 2022, 8:30am UTC](https://discuss.elastic.co/t/doubts-about-multifields/301244/3 "2022-04-29T08:30:51Z")

</div>

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