lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Norouzi" <>
Subject Solr's NumberUtils doesnt work
Date Thu, 02 Aug 2007 06:22:26 GMT
I am using NumberUtils to encode and decode numbers while indexing and
searching, when I am going to decode the number retrieved from an index it
throws exception for some fields
the exception message is:

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: 1
    at java.lang.String.charAt(Unknown Source)
    at org.apache.solr.util.NumberUtils.SortableStr2int(
    at org.apache.solr.util.NumberUtils.SortableStr2int(
    at com.payvand.lucene.util.ExtendedNumberUtils.decodeInteger(

I dont know why this happen, I am wondering if it has something to do with
character encoding. have you had such problem?


Mohammad Norouzi
see my blog:
another in Persian:

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