You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* master:
Reduce CLI scripts to one-liners (#30759)
SQL: Preserve scoring in bool queries (#30730)
QA: Switch rolling upgrade to 3 nodes (#30728)
[TEST] Enable DEBUG logging on testAutoQueueSizingWithMax
[ML] Don't install empty ML metadata on startup (#30751)
Add assertion on removing copy_settings (#30748)
bump lucene version for 6_3_0
[DOCS] Mark painless execute api as experimental (#30710)
disable annotation processor for docs (#30610)
Add more script contexts (#30721)
Fix default shards count in create index docs (#30747)
Mute testCorruptFileThenSnapshotAndRestore
Copy file name to clipboardExpand all lines: plugins/examples/script-expert-scoring/src/main/java/org/elasticsearch/example/expertscript/ExpertScriptPlugin.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ public String getType() {
54
54
55
55
@Override
56
56
public <T> Tcompile(StringscriptName, StringscriptSource, ScriptContext<T> context, Map<String, String> params) {
57
-
if (context.equals(SearchScript.CONTEXT) == false) {
57
+
if (context.equals(SearchScript.SCRIPT_SCORE_CONTEXT) == false) {
58
58
thrownewIllegalArgumentException(getType() + " scripts cannot be used for context [" + context.name + "]");
59
59
}
60
60
// we use the script "source" as the script identifier
0 commit comments