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…
Reference in New Issue