Re: RE: maybe I hit a bug of Term ?

2010-12-10 Thread Tom Hill
Hi Sariny, What Uwe was saying is that the definition for hashCode is found in the docs for Object, and it applies to all implementations of hashCode. It says: "It is not required that if two objects are unequal according to the equals(java.lang.Object) method, then calling the hashCode method o

Re: RE: maybe I hit a bug of Term ?

2010-12-10 Thread Sariny
Object.hashCode() is "implemented by converting the internal address of the object into an integer", Term.hashCode() has override the default implemention,so,this question has nothing todo with Object.hashCode(). I think I should try another way to cache filter results... >Hashcodes

RE: maybe I hit a bug of Term ?

2010-12-10 Thread Uwe Schindler
Hashcodes are not guaranteed to be different. See Object#hashCode() javadocs. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Sariny [mailto:sar...@gmail.com] > Sent: Friday, December 10, 2010 3:34 PM > T

maybe I hit a bug of Term ?

2010-12-10 Thread Sariny
Hi, two different Term get the same hashCode, lucene version 3.0.2 System.out.println(new Term("manu_id",NumericUtils.intToPrefixCoded(111)).hashCode()); System.out.println(new Term("manu_id",NumericUtils.intToPrefixCoded(402)).hashCode()); a

Re: Can I run Lucene in google app engine?

2010-12-10 Thread Konstantyn Smirnov
Thanks Mike, I found it. It's a really elegant way, to serialize the object. No special serialize() methods, just dump in to stram - that's it :) -- View this message in context: http://lucene.472066.n3.nabble.com/Can-I-run-Lucene-in-google-app-engine-tp560098p2063140.html Sent from the Lucene

Re: Where is Lucene 3.0.2

2010-12-10 Thread Seid Muhie
Many Thanks. On Fri, Dec 10, 2010 at 10:40 AM, Ian Lea wrote: > http://archive.apache.org/dist/lucene/java/ > > -- > Ian. > > > On Fri, Dec 10, 2010 at 8:35 AM, Seid Muhie wrote: > > Hi all > > I was trying with semantic vector with lucene 3.0.3. It looks that > version > > of semantic vector h

Re: Where is Lucene 3.0.2

2010-12-10 Thread Ian Lea
http://archive.apache.org/dist/lucene/java/ -- Ian. On Fri, Dec 10, 2010 at 8:35 AM, Seid Muhie wrote: > Hi all > I was trying with semantic vector with lucene 3.0.3. It looks that version > of semantic vector have a problem and they suggest me to use lucene 3.0.2 > till the bug is fixed. > But

Where is Lucene 3.0.2

2010-12-10 Thread Seid Muhie
Hi all I was trying with semantic vector with lucene 3.0.3. It looks that version of semantic vector have a problem and they suggest me to use lucene 3.0.2 till the bug is fixed. But I can't find 3.0.2 on any lucene repository? Any hint -- Seid M. University of Trento, Italy Human Language Techno