lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitri <ev...@mail.ru>
Subject Is this correct: term.field() == fieldName ?
Date Wed, 21 Mar 2007 12:04:27 GMT

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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message