lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbern...@apache.org
Subject [2/3] lucene-solr:master: SOLR-11388: Fix sample function
Date Sat, 23 Sep 2017 17:04:29 GMT
SOLR-11388: Fix sample function


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e62f9f85
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e62f9f85
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e62f9f85

Branch: refs/heads/master
Commit: e62f9f85d094ba57e9552904b51653fd2e316116
Parents: 5c9af86
Author: Joel Bernstein <jbernste@apache.org>
Authored: Sat Sep 23 12:47:52 2017 -0400
Committer: Joel Bernstein <jbernste@apache.org>
Committed: Sat Sep 23 13:03:19 2017 -0400

----------------------------------------------------------------------
 .../java/org/apache/solr/client/solrj/io/eval/SampleEvaluator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e62f9f85/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/SampleEvaluator.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/SampleEvaluator.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/SampleEvaluator.java
index 1eccebb..ca35a7d 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/SampleEvaluator.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/SampleEvaluator.java
@@ -49,7 +49,7 @@ public class SampleEvaluator extends RecursiveObjectEvaluator implements
ManyVal
 
     Object second = null;
     if(objects.length > 1) {
-      second = objects[2];
+      second = objects[1];
     }
 
     if(first instanceof RealDistribution) {


Mime
View raw message