lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera" <ser...@gmail.com>
Subject Bug in FieldInfo (omitTF)?
Date Tue, 18 Nov 2008 09:09:05 GMT
Hi

I looked at FieldInfo and found this line (95):

    if (this.omitTf != omitTf) {
      this.omitTf = true;                // if one require omitTf at least
once, it remains off for life
    }

Shouldn't it be:
    if (this.omitTf != other.omitTf) {
      this.omitTf = true;                // if one require omitTf at least
once, it remains off for life
    }

The first version compares the field to itself ...

Shai

Mime
View raw message