# How to set Max\_analyzed\_offset setting for all searches in Discover

**URL:** <https://discuss.elastic.co/t/how-to-set-max-analyzed-offset-setting-for-all-searches-in-discover/315466>\
**Category:** Elasticsearch\
**Created:** [September 29, 2022, 2:14pm UTC](https://discuss.elastic.co/t/how-to-set-max-analyzed-offset-setting-for-all-searches-in-discover/315466 "2022-09-29T14:14:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quentin\_vk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quentin_vk/32/103191_2.png) [@Quentin\_vk](https://discuss.elastic.co/u/Quentin_vk)\
**Post date:** [September 29, 2022, 2:14pm UTC](https://discuss.elastic.co/t/how-to-set-max-analyzed-offset-setting-for-all-searches-in-discover/315466/1 "2022-09-29T14:14:51Z")

</div>

Hi,  
we're having this very well known error "the length of field[...] index has exceed maximum allowed to be analyzed for highlighting". We're trying to use the `max_analyzed_offset` setting as a global search setting in the Discover page. I only find ways to use it for specific search queries in dev tools or with curl.  
Any ideas on how to achieve that? We're on the 7.17.

---

<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 27, 2022, 2:15pm UTC](https://discuss.elastic.co/t/how-to-set-max-analyzed-offset-setting-for-all-searches-in-discover/315466/2 "2022-10-27T14:15:20Z")

</div>

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