Fix Java API documentation for indexed scripts
This commit is contained in:
parent
ef6d2f5ab3
commit
6d0114edb5
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue