# Is it possible to use the field\_value\_factor with array length

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-use-the-field-value-factor-with-array-length/2009>\
**Category:** Elasticsearch\
**Created:** [June 5, 2015, 1:09pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-the-field-value-factor-with-array-length/2009 "2015-06-05T13:09:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruteche](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bruteche](https://discuss.elastic.co/u/bruteche)\
**Post date:** [June 5, 2015, 1:09pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-the-field-value-factor-with-array-length/2009/1 "2015-06-05T13:09:02Z")

</div>

Hi all,

I'm trying to define a field value factor based on the size of an array but it seems that it is not possible do you have any other idea of design to do this in script calculation ?

Regards,

---

<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:** [July 6, 2017, 12:09am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-the-field-value-factor-with-array-length/2009/2 "2017-07-06T00:09:25Z")

</div>

Closed on July 6, 2017, 12:09am UTC


