From 0ed3b6be9a80c3793a77f7c185f1ad05dfbedd1b Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Sun, 12 Sep 2010 15:48:06 +0000 Subject: [PATCH] LUCENE-2504: fix missing ord fill git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@996332 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/lucene/search/FieldComparator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lucene/src/java/org/apache/lucene/search/FieldComparator.java b/lucene/src/java/org/apache/lucene/search/FieldComparator.java index b6ff1ac71cd..5e2e0d08c13 100644 --- a/lucene/src/java/org/apache/lucene/search/FieldComparator.java +++ b/lucene/src/java/org/apache/lucene/search/FieldComparator.java @@ -847,10 +847,10 @@ public abstract class FieldComparator { @Override public void copy(int slot, int doc) { final int ord = readerOrds[doc]&0xFF; + ords[slot] = ord; if (ord == 0) { values[slot] = null; } else { - ords[slot] = ord; assert ord > 0; if (values[slot] == null) { values[slot] = new BytesRef(); @@ -908,10 +908,10 @@ public abstract class FieldComparator { @Override public void copy(int slot, int doc) { final int ord = readerOrds[doc]&0xFFFF; + ords[slot] = ord; if (ord == 0) { values[slot] = null; } else { - ords[slot] = ord; assert ord > 0; if (values[slot] == null) { values[slot] = new BytesRef(); @@ -969,10 +969,10 @@ public abstract class FieldComparator { @Override public void copy(int slot, int doc) { final int ord = readerOrds[doc]; + ords[slot] = ord; if (ord == 0) { values[slot] = null; } else { - ords[slot] = ord; assert ord > 0; if (values[slot] == null) { values[slot] = new BytesRef(); @@ -1031,10 +1031,10 @@ public abstract class FieldComparator { @Override public void copy(int slot, int doc) { final int ord = (int) readerOrds.get(doc); + ords[slot] = ord; if (ord == 0) { values[slot] = null; } else { - ords[slot] = ord; assert ord > 0; if (values[slot] == null) { values[slot] = new BytesRef();