RE: java.lang.NumberFormatException Using PhraseQuery with Lucene 4.0.0

2013-01-28 Thread JimAld
Thanks for the reply, but I'm not convinced this is the issue, I only have ~300 lines of code and have searched for BYTE with zero results. Also, I upgraded my Lucene libraries to 4.1.0 and the issue goes away... -- View this message in context:

Re: java.lang.NumberFormatException Using PhraseQuery with Lucene 4.0.0

2013-01-25 Thread Michael McCandless
Can you provide the full stack trace? Mike McCandless http://blog.mikemccandless.com On Fri, Jan 25, 2013 at 11:13 AM, JimAld jim.alder...@db.com wrote: Hi, The below code is throwing the exception: java.lang.NumberFormatException: For input string: 01.SZ at

Re: java.lang.NumberFormatException Using PhraseQuery with Lucene 4.0.0

2013-01-25 Thread JimAld
Sure, here it is: java.lang.NumberFormatException: For input string: 01.SZ at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:458) at java.lang.Byte.parseByte(Byte.java:151) at

Re: java.lang.NumberFormatException Using PhraseQuery with Lucene 4.0.0

2013-01-25 Thread JimAld
Also, I made a mistake in my original post, the sort constructor used is actually of type String as follows: Sort sort = new Sort(new SortField(fieldName,SortField.Type.STRING)); All the rest of the code is correct. Thanks. -- View this message in context:

RE: java.lang.NumberFormatException Using PhraseQuery with Lucene 4.0.0

2013-01-25 Thread Uwe Schindler
: java.lang.NumberFormatException Using PhraseQuery with Lucene 4.0.0 Sure, here it is: java.lang.NumberFormatException: For input string: 01.SZ at java.lang.NumberFormatException.forInputString(NumberFormatException. java:48) at java.lang.Integer.parseInt(Integer.java:458