In the org.apache.lucene.search.PrefixFilter I've found: 
......
       if (term != null &&
            term.text().startsWith(prefixText) &&
            term.field() == prefixField)
        {
........................
Is it correct to compare using '==' or equals should be used instead?
-------------
Dmitri.

-- 
View this message in context: 
http://www.nabble.com/Is-this-correct%3A-term.field%28%29-%3D%3D-fieldName---tf3440232.html#a9592526
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to