Hi Evgeni, Yes, you are correct, the DSpace Solr Statistics Schema was accidentally left as-is between 5.x and 6.x, even though identifiers were changed to UUIDs. This ticket and PR are the fixes that your schema need to work properly for custom queries:
https://jira.duraspace.org/browse/DS-4066 https://github.com/DSpace/DSpace/pull/2249 These fixes will be released in a 6.4... however, you can also simply update your local schema (see the PR) immediately to fix the main issue. - Tim On Thu, Nov 22, 2018 at 9:41 AM Evgeni Dimitrov <[email protected]> wrote: > This is in DSpace 6.2 > The query fails with > java.lang.NumberFormatException: For input string: > "025186b3-56fa-4314-9cbb-e951f2bbd467" > > More of the trace is bellow. Is it possible that it is caused because SOLR > expects the ID to be a number as in 5.x? > If this is the case is there a workaround? > > ------------------------------------- > 2018-11-22 17:04:39,015 INFO org.apache.solr.core.SolrCore @ [statistics] > webapp=/solr path=/select > params={q=type:2&facet.limit=-1&facet.pivot=id,statistics_type&indent=on&fq=owningComm:94a589a1-33a0-41e3-a83b-f7644db9a1a5&fq=-isBot:true&fq=time:[2018-10-01T00:00:00Z+TO+2018-11-01T00:00:00Z]&rows=0&facet=true&facet.pivot.mincount=1} > hits=2360 status=500 QTime=1121 > 2018-11-22 17:04:39,015 ERROR org.apache.solr.servlet.SolrDispatchFilter @ > null:java.lang.NumberFormatException: For input string: > "025186b3-56fa-4314-9cbb-e951f2bbd467" > at > java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) > at java.lang.Integer.parseInt(Integer.java:580) > at java.lang.Integer.valueOf(Integer.java:766) > at org.apache.solr.schema.IntField.toObject(IntField.java:92) > at org.apache.solr.schema.IntField.toObject(IntField.java:45) > at org.apache.solr.schema.FieldType.toObject(FieldType.java:364) > at > org.apache.solr.handler.component.PivotFacetProcessor.doPivots(PivotFacetProcessor.java:179) > at > org.apache.solr.handler.component.PivotFacetProcessor.processSingle(PivotFacetProcessor.java:143) > at > org.apache.solr.handler.component.PivotFacetProcessor.process(PivotFacetProcessor.java:95) > at > org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:112) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976) > at > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777) > > -- > All messages to this mailing list should adhere to the DuraSpace Code of > Conduct: https://duraspace.org/about/policies/code-of-conduct/ > --- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > -- Tim Donohue Technical Lead for DSpace & DSpaceDirect DuraSpace.org | DSpace.org | DSpaceDirect.org -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
