SOLR-12522: forbidden api

This commit is contained in:
Noble Paul 2018-07-17 16:37:36 +10:00
parent 49b1fe2b6d
commit be475bbc7e
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ public class Suggestion {
@Override
public Object computeValue(Policy.Session session, Clause.Condition cv, String collection, String shard, String node) {
if (cv.computedType == ComputedType.ALL)
return new Double(getRelevantReplicasCount(session, cv, collection, shard));
return Double.valueOf(getRelevantReplicasCount(session, cv, collection, shard));
if (cv.computedType == ComputedType.EQUAL) {
int relevantReplicasCount = getRelevantReplicasCount(session, cv, collection, shard);
if (relevantReplicasCount == 0) return 0;