mirror of https://github.com/apache/lucene.git
SOLR-12522: forbidden api
This commit is contained in:
parent
49b1fe2b6d
commit
be475bbc7e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue