# Elasticsearch and Magento 2.4.1 “No mapping found for position category”

**URL:** <https://discuss.elastic.co/t/elasticsearch-and-magento-2-4-1-no-mapping-found-for-position-category/364357>\
**Category:** Elasticsearch\
**Created:** [August 5, 2024, 7:49am UTC](https://discuss.elastic.co/t/elasticsearch-and-magento-2-4-1-no-mapping-found-for-position-category/364357 "2024-08-05T07:49:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MageComp\_Product\_Tea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magecomp_product_tea/32/136513_2.png) [@MageComp\_Product\_Tea](https://discuss.elastic.co/u/MageComp_Product_Tea)\
**Post date:** [August 5, 2024, 7:49am UTC](https://discuss.elastic.co/t/elasticsearch-and-magento-2-4-1-no-mapping-found-for-position-category/364357/1 "2024-08-05T07:49:56Z")

</div>

[2024-08-05T05:11:45.779144+00:00] main.CRITICAL: Elasticsearch\Common\Exceptions\BadRequest400Exception: {"error":{"root\_cause":[{"type":"illegal\_argument\_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [customer\_price\_1\_229] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}],"type":"search\_phase\_execution\_exception","reason":"all shards failed","phase":"query","grouped":true,"failed\_shards":[{"shard":0,"index":"magento2\_product\_1\_v97","node":"woSbrrljSfCQUEoPcR4Mpg","reason":{"type":"illegal\_argument\_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [customer\_price\_1\_229] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}],"caused\_by":{"type":"illegal\_argument\_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [customer\_price\_1\_229] in order to load field data by uninverting the inverted index. Note that this can use significant memory.","caused\_by":{"type":"illegal\_argument\_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [customer\_price\_1\_229] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}},"status":400} in /home/1189799.cloudwaysapps.com/fbpzhgjsyw/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:693

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 5, 2024, 8:20am UTC](https://discuss.elastic.co/t/elasticsearch-and-magento-2-4-1-no-mapping-found-for-position-category/364357/2 "2024-08-05T08:20:34Z")

</div>

From #Elastic Search to #Elasticsearch

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 5, 2024, 8:20am UTC](https://discuss.elastic.co/t/elasticsearch-and-magento-2-4-1-no-mapping-found-for-position-category/364357/3 "2024-08-05T08:20:34Z")

</div>

Removed #elastic-app-search

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 5, 2024, 8:22am UTC](https://discuss.elastic.co/t/elasticsearch-and-magento-2-4-1-no-mapping-found-for-position-category/364357/4 "2024-08-05T08:22:54Z")

</div>

Welcome!

Please don't post unformatted code, logs, or configuration as it's very hard to read.

Instead, paste the text and format it with \</\> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

Could you ask some description about your problem, the version used...?

But I guess it's a mapping issue on field `customer_price_1_229` which mark as a `text` field.

---

<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 2, 2024, 8:23am UTC](https://discuss.elastic.co/t/elasticsearch-and-magento-2-4-1-no-mapping-found-for-position-category/364357/5 "2024-09-02T08:23:06Z")

</div>

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