Referencing function_score indexed script by ID in Java client

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?