Skip to content

Commit

Permalink
Change in ScriptService#executable parameters
Browse files Browse the repository at this point in the history
Due to this change elastic/elasticsearch#10116 we need to update river plugin starting 1.6.0.

Was a breaking change.

Closes #96.
  • Loading branch information
dadoonet committed Mar 31, 2015
1 parent a8889d8 commit 3a157b6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -39,6 +39,7 @@
import org.elasticsearch.common.xcontent.support.XContentMapValues;
import org.elasticsearch.river.*;
import org.elasticsearch.script.ExecutableScript;
import org.elasticsearch.script.ScriptContext;
import org.elasticsearch.script.ScriptService;

import javax.net.ssl.HostnameVerifier;
Expand Down Expand Up @@ -143,7 +144,7 @@ public CouchdbRiver(RiverName riverName, RiverSettings settings, @RiverIndexName
}

script = scriptService.executable(scriptType, couchSettings.get("script").toString(),
ScriptService.ScriptType.INLINE, Maps.<String, Object>newHashMap());
ScriptService.ScriptType.INLINE, ScriptContext.UPDATE, Maps.<String, Object>newHashMap());
} else {
script = null;
}
Expand Down

0 comments on commit 3a157b6

Please sign in to comment.