# Referencing function\_score indexed script by ID in Java client

**URL:** <https://discuss.elastic.co/t/referencing-function-score-indexed-script-by-id-in-java-client/32812>\
**Category:** Elasticsearch\
**Created:** [October 22, 2015, 10:39pm UTC](https://discuss.elastic.co/t/referencing-function-score-indexed-script-by-id-in-java-client/32812 "2015-10-22T22:39:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlvoyer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rlvoyer/32/4928_2.png) [@rlvoyer](https://discuss.elastic.co/u/rlvoyer)\
**Post date:** [October 22, 2015, 10:39pm UTC](https://discuss.elastic.co/t/referencing-function-score-indexed-script-by-id-in-java-client/32812/1 "2015-10-22T22:39:14Z")

</div>

Hello! I am using ES v1.7 and it seems to me that there is no way to reference an indexed script by ID using the Java client. Am I missing something?

> <https://github.com/elastic/elasticsearch/blob/1.7/src/main/java/org/elasticsearch/index/query/functionscore/ScoreFunctionBuilders.java#L59-L73>

---

<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 5, 2017, 11:42pm UTC](https://discuss.elastic.co/t/referencing-function-score-indexed-script-by-id-in-java-client/32812/2 "2017-07-05T23:42:51Z")

</div>


