lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctarg...@apache.org
Subject [10/50] [abbrv] lucene-solr:jira/solr-12746: LUCENE-8496: Fix BKDWriter to use writeField1Dim when numDataDims is set to 1
Date Mon, 22 Oct 2018 23:34:55 GMT
LUCENE-8496: Fix BKDWriter to use writeField1Dim when numDataDims is set to 1


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

Branch: refs/heads/jira/solr-12746
Commit: a506912a022c98032388a4323708016c2465cf87
Parents: a786597
Author: Nicholas Knize <nknize@gmail.com>
Authored: Wed Oct 10 09:35:19 2018 -0500
Committer: Cassandra Targett <ctargett@apache.org>
Committed: Sun Oct 21 15:46:46 2018 -0500

----------------------------------------------------------------------
 lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a506912a/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java b/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
index d7db94b..c4ac04e 100644
--- a/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
+++ b/lucene/core/src/java/org/apache/lucene/util/bkd/BKDWriter.java
@@ -435,7 +435,7 @@ public class BKDWriter implements Closeable {
    *  disk. This method does not use transient disk in order to reorder points.
    */
   public long writeField(IndexOutput out, String fieldName, MutablePointValues reader) throws
IOException {
-    if (numIndexDims == 1) {
+    if (numDataDims == 1) {
       return writeField1Dim(out, fieldName, reader);
     } else {
       return writeFieldNDims(out, fieldName, reader);


Mime
View raw message