Re: Lucene 4.0 questions, was: shift bug in possibly invalid use of NumericTokenStream

2011-12-19 Thread Simon Willnauer
On Mon, Dec 19, 2011 at 9:04 PM, Simon Willnauer wrote: > On Mon, Dec 19, 2011 at 5:03 PM, Peter Karich wrote: >> Hi Uwe, >> >> thanks for the talk suggestion(s)*. >> >> I was using it for faster term lookups of a long 'id'. How would this be >> done with 4.0? Before I did it via Term: >> >> new

Re: Lucene 4.0 questions, was: shift bug in possibly invalid use of NumericTokenStream

2011-12-19 Thread Simon Willnauer
On Mon, Dec 19, 2011 at 5:03 PM, Peter Karich wrote: > Hi Uwe, > > thanks for the talk suggestion(s)*. > > I was using it for faster term lookups of a long 'id'. How would this be > done with 4.0? Before I did it via Term: > > new Term(fieldName, NumericUtils.longToPrefixCoded(longValue)); > > How

RE: Lucene 4.0 questions, was: shift bug in possibly invalid use of NumericTokenStream

2011-12-19 Thread Uwe Schindler
> Hi Uwe, > > thanks for the talk suggestion(s)*. > > I was using it for faster term lookups of a long 'id'. How would this be done with > 4.0? Before I did it via Term: > > new Term(fieldName, NumericUtils.longToPrefixCoded(longValue)); If you want to query on a single numeric term value, use