lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thushara Wijeratna <thu...@gmail.com>
Subject Re: Lucene 3.4 : shift bug in possibly invalid use of NumericTokenStream
Date Sat, 17 Dec 2011 00:00:33 GMT
Yes, there is one.

This is how the field is being created:

new NumericField("timestamp", Field.Store.NO, true);

Thus, the field is not stored, but indexed.

thx,
thushara


On Fri, Dec 16, 2011 at 3:28 PM, Uwe Schindler <uwe@thetaphi.de> wrote:

> Do you have NumericFields? If yes, how are they configured?
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
> > -----Original Message-----
> > From: Thushara Wijeratna [mailto:thushw@gmail.com]
> > Sent: Saturday, December 17, 2011 12:25 AM
> > To: java-user@lucene.apache.org
> > Subject: Lucene 3.4 : shift bug in possibly invalid use of
> NumericTokenStream
> >
> > I got this exception while indexing with Lucene 3.4:
> >
> > Exception in thread "Thread-0" java.lang.IllegalArgumentException:
> Illegal
> shift
> > value, must be 0..31
> >
> > at
> >
> org.apache.lucene.util.NumericUtils.intToPrefixCoded(NumericUtils.java:157)
> >
> > at
> > org.apache.lucene.analysis.NumericTokenStream.incrementToken(NumericTok
> > enStream.java:217)
> >
> > at
> >
>
> org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerFiel
> d
> > .java:185)
> >
> > at
> > org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFie
> > ldProcessorPerThread.java:278)
> >
> > at
> > org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter
> > .java:766)
> >
> > at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2067)
> >
> > at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2041)
> >
> > at com.adxpose.affinity.IndexerHelper.index(IndexerHelper.java:797)
> >
> > at com.adxpose.affinity.IndexerHelper$Clerk.run(IndexerHelper.java:433)
> >
> > at java.lang.Thread.run(Thread.java:662)
> >
> >
> > It is not clear to my why the NumericTokenStream is being called here, as
> my
> > analyzer do not use that. Any clues much appreciated.
> >
> >
> > thx,
> >
> > thushara
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message