I get the error doing stats or facet query on an sfloat. So the
following query:
q
=
*:*&facet
=
true
&facet.mincount=1&facet.sort=true&facet.limit=-1&facet.field=salePrice
Gives the following error:
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.lang.String.charAt(String.java:687)
at org.apache.solr.util.NumberUtils.SortableStr2int(NumberUtils.java:
129)
at
org.apache.solr.util.NumberUtils.SortableStr2float(NumberUtils.java:83)
at
org.apache.solr.util.NumberUtils.SortableStr2floatStr(NumberUtils.java:
89)
at
org
.apache
.solr
.schema.SortableFloatField.indexedToReadable(SortableFloatField.java:62)
at
org
.apache
.solr.request.SimpleFacets.getFieldCacheCounts(SimpleFacets.java:406)
at
org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:
252)
at
org
.apache
.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:280)
at
org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:
170)
at
org
.apache
.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
at
org
.apache
.solr
.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:
195)
at
org
.apache
.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:
131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1333)
at
org
.apache
.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:303)
at
org
.apache
.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:232)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org
.apache
.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org
.apache
.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org
.apache
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:637)
Thank you,
Nasseam
http://factbook.bodukai.com/
Solr-Powered Search+Nav
On Apr 30, 2009, at 12:01 PM, Shalin Shekhar Mangar wrote:
On Fri, May 1, 2009 at 12:27 AM, Nasseam Elkarra
<nass...@bodukai.com>wrote:
Hello,
I'm getting an error when trying to create stats on an sfloat
field. The
field is for price and when there is no decimal it works fine but
when there
is a decimal (e.g., 24.99) I get an error:
java.lang.StringIndexOutOfBoundsException: String index out of
range: 2
Can you post the complete stack trace?
--
Regards,
Shalin Shekhar Mangar.