LUCENE-2504: fix missing ord fill

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@996332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-09-12 15:48:06 +00:00
parent c783479260
commit 0ed3b6be9a
1 changed files with 4 additions and 4 deletions

View File

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