# Limit number of scripted fields per search

**URL:** <https://discuss.elastic.co/t/limit-number-of-scripted-fields-per-search/177423>\
**Category:** Kibana\
**Created:** [April 18, 2019, 9:26am UTC](https://discuss.elastic.co/t/limit-number-of-scripted-fields-per-search/177423 "2019-04-18T09:26:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivekkarne](https://avatars.discourse-cdn.com/v4/letter/v/f08c70/32.png) [@vivekkarne](https://discuss.elastic.co/u/vivekkarne)\
**Post date:** [April 18, 2019, 9:26am UTC](https://discuss.elastic.co/t/limit-number-of-scripted-fields-per-search/177423/1 "2019-04-18T09:26:41Z")

</div>

Hi,

I have created 12 scripted fields for one index pattern, but each index in those index patterns requires at a time less than 5 of the given 12 scripted fields. Is there any way i can limit the scripted fields which are being computed per search so that i can save the time which is spent in calculating the remaining scripted fields

Thanks,  
Vivek

---

<div class="post-metadata">

**Author:** ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)\
**Post date:** [April 19, 2019, 8:48pm UTC](https://discuss.elastic.co/t/limit-number-of-scripted-fields-per-search/177423/2 "2019-04-19T20:48:46Z")

</div>

Hi there!

I don't believe there is a way to disable scripted fields on a per-search basis. I think the best option for your use case would be to create a new index pattern for each set of scripted fields you want to use.

---

<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:** [May 17, 2019, 8:48pm UTC](https://discuss.elastic.co/t/limit-number-of-scripted-fields-per-search/177423/3 "2019-05-17T20:48:46Z")

</div>

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