Fix Java API documentation for indexed scripts

This commit is contained in:
Yannick Welsch 2015-12-22 12:40:28 +01:00
parent ef6d2f5ab3
commit 6d0114edb5
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ and delete indexed scripts and templates.
PutIndexedScriptResponse = client.preparePutIndexedScript()
.setScriptLang("groovy")
.setId("script1")
.setSource("_score * doc['my_numeric_field'].value")
.setSource("script", "_score * doc['my_numeric_field'].value")
.execute()
.actionGet();