mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
only allow _score to be used, and remove score from custom_score scripts
This commit is contained in:
parent
bdb87c7a62
commit
e85f9c276f
@ -117,7 +117,6 @@ public class CustomScoreQueryParser extends AbstractIndexComponent implements XC
|
||||
}
|
||||
|
||||
@Override public float score(int docId, float subQueryScore) {
|
||||
vars.put("score", subQueryScore);
|
||||
vars.put("_score", subQueryScore);
|
||||
return ((Number) script.execute(docId, vars)).floatValue();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user