LUCENE-8496: Fix BKDWriter to use writeField1Dim when numDataDims is set to 1

This commit is contained in:
Nicholas Knize 2018-10-10 09:35:19 -05:00
parent 095707d547
commit 4cfa876d9d
1 changed files with 1 additions and 1 deletions

View File

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