lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Bug in FieldInfo (omitTF)?
Date Tue, 18 Nov 2008 09:42:51 GMT

It is a bug, but it's in dead code that's never called.  I'll remove  
the code.

Mike

Michael Busch wrote:

> see http://issues.apache.org/jira/browse/LUCENE-1456
>
> Shai Erera wrote:
>> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message