Hi, 
I'm using solr1.3 nightly build. I defined a sint field bookCount. When
I query on this field, it works fine without highlight. However if I
turn on highlight(hl=true&hl.fl=bookCount), it failed due to the error
below. Does anyone know if this is a bug? If I change the type to
integer, the highlight work, but I need to do range query on this field,
so it has to be defined as sint.
 
Thanks
Xuesong
 
 
2008-02-25 16:54:53,524 ERROR [STDERR] Feb 25, 2008 4:54:53 PM
org.apache.solr.core.SolrCore execute
INFO: [xluo] /select/
rows=10&start=0&hl.fl=bookCount&indent=on&q=bookCount:5&hl=true&version=
2.2 0 0

2008-02-25 16:54:53,524 ERROR [STDERR] Feb 25, 2008 4:54:53 PM
org.apache.solr.common.SolrException log
SEVERE: java.lang.NumberFormatException: For input string: "   "
 at
java.lang.NumberFormatException.forInputString(NumberFormatException.jav
a:48)
 at java.lang.Long.parseLong(Long.java:403)
 at java.lang.Long.parseLong(Long.java:461)
 at
org.apache.solr.util.NumberUtils.long2sortableStr(NumberUtils.java:52)
 at
org.apache.solr.schema.SortableLongField.toInternal(SortableLongField.ja
va:49)
 at
org.apache.solr.schema.FieldType$DefaultAnalyzer$1.next(FieldType.java:3
15)
 at
org.apache.solr.highlight.TokenOrderingFilter.next(SolrHighlighter.java:
439)
 at
org.apache.lucene.search.highlight.Highlighter.getBestTextFragments(High
lighter.java:226)

 


 

 

Reply via email to