# How to use facets transform mime\_types

**URL:** <https://discuss.elastic.co/t/how-to-use-facets-transform-mime-types/298651>\
**Category:** Elastic Search\
**Tags:** elastic-workplace-search\
**Created:** [March 2, 2022, 5:12pm UTC](https://discuss.elastic.co/t/how-to-use-facets-transform-mime-types/298651 "2022-03-02T17:12:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_Vanderschueren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robin_vanderschueren/32/102370_2.png) [@Robin\_Vanderschueren](https://discuss.elastic.co/u/Robin_Vanderschueren)\
**Post date:** [March 2, 2022, 5:12pm UTC](https://discuss.elastic.co/t/how-to-use-facets-transform-mime-types/298651/1 "2022-03-02T17:12:00Z")

</div>

I'm looking into the way on how to change the mime\_type field into a more readable format.

Following the documentation: [Content sources API reference | Workplace Search Guide [8.4] | Elastic](https://www.elastic.co/guide/en/workplace-search/current/workplace-search-content-sources-api.html)

I tried the following:

```auto
curl \
--request "PUT" \
--url "https://XXXX.ent.eu-central-1.aws.cloud.es.io/api/ws/v1/sources/XXX" \
--header "Authorization: Bearer XXXX" \
--header "Content-Type: application/json" \
--data '
{
    "name": "GoogleDrive",
    "is_searchable": true,
    "facets": {
        "overrides": [
            {
                "field": "mime_type",
                "name": "Mime_type_clean",
                "enabled": true,
                "transform": "mime_type",
            }
        ]
    },
}
'

```

But it is not updated when I retrieve the sources again. How can I "activate" the human-readable mime\_types?

---

<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:** [October 31, 2022, 2:48am UTC](https://discuss.elastic.co/t/how-to-use-facets-transform-mime-types/298651/2 "2022-10-31T02:48:07Z")

</div>

Closed on October 31, 2022, 2:48am UTC

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