Re: Is this correct: term.field() == fieldName ?

2007-03-21 Thread mark harwood
essage From: dmitri <[EMAIL PROTECTED]> To: java-dev@lucene.apache.org Sent: Wednesday, 21 March, 2007 12:04:27 PM Subject: Is this correct: term.field() == fieldName ? In the org.apache.lucene.search.PrefixFilter I've found: .. if (term != null &&

Is this correct: term.field() == fieldName ?

2007-03-21 Thread dmitri
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? --