# Scripted fields on large number of data

**URL:** <https://discuss.elastic.co/t/scripted-fields-on-large-number-of-data/292983>\
**Category:** Elasticsearch\
**Created:** [December 27, 2021, 2:31pm UTC](https://discuss.elastic.co/t/scripted-fields-on-large-number-of-data/292983 "2021-12-27T14:31:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bazingaa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bazingaa/32/83575_2.png) [@bazingaa](https://discuss.elastic.co/u/bazingaa)\
**Post date:** [December 27, 2021, 2:31pm UTC](https://discuss.elastic.co/t/scripted-fields-on-large-number-of-data/292983/1 "2021-12-27T14:31:34Z")

</div>

I have a ES index with millions of records. Currently records are fetched using scroll api and are paginated. Also all fields are sortable.  
I have request for new additional fields (dependent on already existing fields). So wanted to use scripted fields.  
Can we apply scripted fields clubbed with scroll api?  
Can we have scripted fields data sorted?

---

<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:** [January 24, 2022, 2:32pm UTC](https://discuss.elastic.co/t/scripted-fields-on-large-number-of-data/292983/2 "2022-01-24T14:32:00Z")

</div>

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