How do you mean? If I create two terms, with the public constructor:

Term t1 = new Term(new String("foo"),"bar");
Term t2 = new Term(new String("foo"),"bar");

The result of t1.equals(t2) will be false..  




-----Oorspronkelijk bericht-----
Van: Yonik Seeley [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 26 april 2005 16:04
Aan: java-user@lucene.apache.org
CC: Lucene Users List
Onderwerp: Re: FW: CVS Lucene 2.0

Term.field is interned, so equals() isn't needed.
-Yonik

On 4/26/05, Peter Veentjer - Anchor Men <[EMAIL PROTECTED]> wrote:
[...]
>                 Term other = (Term) o;
>                 return field.equals(other.field) && 
> text.equals(other.text);
>         }
> Third: if the field values of refer to the same text but to different 
> object, the result should be the same.

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





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

Reply via email to