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:
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
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
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:
: 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