Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

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 #95.
  • Loading branch information
dadoonet committed Mar 31, 2015
1 parent 1df982b commit 361b613
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -39,6 +39,7 @@
import org.elasticsearch.river.RiverName;
import org.elasticsearch.river.RiverSettings;
import org.elasticsearch.script.ExecutableScript;
import org.elasticsearch.script.ScriptContext;
import org.elasticsearch.script.ScriptService;

import java.io.BufferedReader;
Expand Down Expand Up @@ -230,7 +231,7 @@ public RabbitmqRiver(RiverName riverName, RiverSettings settings, Client client,
scriptParams = Maps.newHashMap();
}
bulkScript = scriptService.executable(scriptLang, scriptSettings.get("script").toString(),
ScriptService.ScriptType.INLINE, scriptParams);
ScriptService.ScriptType.INLINE, ScriptContext.UPDATE, scriptParams);
} else {
bulkScript = null;
}
Expand All @@ -252,7 +253,7 @@ public RabbitmqRiver(RiverName riverName, RiverSettings settings, Client client,
scriptParams = Maps.newHashMap();
}
script = scriptService.executable(scriptLang, scriptSettings.get("script").toString(),
ScriptService.ScriptType.INLINE, scriptParams);
ScriptService.ScriptType.INLINE, ScriptContext.UPDATE, scriptParams);
} else {
script = null;
}
Expand Down

0 comments on commit 361b613

Please sign in to comment.