RE: lucene 2.9+ numeric indexing

2009-11-08 Thread Uwe Schindler
e eMail: u...@thetaphi.de > -Original Message- > From: John Wang [mailto:john.w...@gmail.com] > Sent: Sunday, November 08, 2009 12:36 AM > To: java-user@lucene.apache.org > Subject: lucene 2.9+ numeric indexing > > Hi guys: > > Running into a strange problem:

lucene 2.9+ numeric indexing

2009-11-08 Thread John Wang
Hi guys: Running into a strange problem: I am indexing into a field a numeric string: int n = Math.abs(rand.nextInt(100)); Field myField = new Field(MY_FIELD,String.valueOf(n),Store.NO,Index. NOT_ANALYZED_NO_NORMS); myField.setOmitTermFreqAndPositions(true); doc.add(myFi