Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-324

solr can't perform sort by long field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3
    • search
    • None
    • Windows XP SP2
      Java 1.6u1
      solr - lastes svn version

    Description

      when sorting results by field with type long
      throwed folowing exception

      java.lang.NumberFormatException: For input string: "1104836394000"
      at java.lang.NumberFormatException.forInputString(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at org.apache.lucene.search.FieldCacheImpl$1.parseInt(FieldCacheImpl.java:136)
      at org.apache.lucene.search.FieldCacheImpl$3.createValue(FieldCacheImpl.java:171)
      at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:72)
      at org.apache.lucene.search.FieldCacheImpl.getInts(FieldCacheImpl.java:154)
      at org.apache.lucene.search.FieldCacheImpl.getInts(FieldCacheImpl.java:148)
      at org.apache.lucene.search.FieldSortedHitQueue.comparatorInt(FieldSortedHitQueue.java:204)
      at org.apache.lucene.search.FieldSortedHitQueue$1.createValue(FieldSortedHitQueue.java:175)
      at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:72)
      at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:155)
      at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:56)
      at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:857)
      at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:805)
      at org.apache.solr.search.SolrIndexSearcher.getDocList(SolrIndexSearcher.java:698)
      at org.apache.solr.handler.StandardRequestHandler.handleRequestBody(StandardRequestHandler.java:126)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:78)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:722)
      at org.apache.solr.servlet.SolrServlet.doGet(SolrServlet.java:64)
      at org.apache.solr.servlet.SolrServlet.doPost(SolrServlet.java:51)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:187)
      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:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Unknown Source)

      Attachments

        1. SOLR-324.patch
          15 kB
          Grant Ingersoll
        2. SOLR-324.patch
          21 kB
          Grant Ingersoll
        3. SOLR-324.patch
          4 kB
          Grant Ingersoll
        4. SOLR-324
          3 kB
          Grant Ingersoll

        Issue Links

          Activity

            People

              gsingers Grant Ingersoll
              22dsse Sergey Dryganets
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: