lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Norouzi" <mnr...@gmail.com>
Subject Solr's NumberUtils doesnt work
Date Thu, 02 Aug 2007 06:22:26 GMT
Hi
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(NumberUtils.java
:125)
    at org.apache.solr.util.NumberUtils.SortableStr2int(NumberUtils.java:37)
    at com.payvand.lucene.util.ExtendedNumberUtils.decodeInteger(
ExtendedNumberUtils.java:123)


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

thanks

-- 
Regards,
Mohammad Norouzi
--------------------------
see my blog: http://brainable.blogspot.com/
another in Persian: http://fekre-motefavet.blogspot.com/

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