mirror of https://github.com/apache/lucene.git
LUCENE-8496: Fix BKDWriter to use writeField1Dim when numDataDims is set to 1
This commit is contained in:
parent
095707d547
commit
4cfa876d9d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue