# Can not access to params.\_source in script\_score

**URL:** <https://discuss.elastic.co/t/can-not-access-to-params-source-in-script-score/153851>\
**Category:** Elasticsearch\
**Created:** [October 24, 2018, 4:44pm UTC](https://discuss.elastic.co/t/can-not-access-to-params-source-in-script-score/153851 "2018-10-24T16:44:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [October 24, 2018, 6:36pm UTC](https://discuss.elastic.co/t/can-not-access-to-params-source-in-script-score/153851/3 "2018-10-24T18:36:54Z")

</div>

In this particular case, the issue is an unintentional side effect of [refactoring](https://github.com/elastic/elasticsearch/pull/30816). However, it does fall in line with long suggested guidance, which is accessing \_source in scoring scripts is _slow_ and should not be done.

Do you have doc values disabled for categories and category\_id?

---

_[View the full topic](https://discuss.elastic.co/t/can-not-access-to-params-source-in-script-score/153851)._
