only allow _score to be used, and remove score from custom_score scripts

This commit is contained in:
kimchy 2011-01-31 02:19:41 +02:00
parent bdb87c7a62
commit e85f9c276f
1 changed files with 0 additions and 1 deletions

View File

@ -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();
}