Solr
  1. Solr
  2. SOLR-324

solr can't perform sort by long field

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: search
    • Labels:
      None
    • Environment:

      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)

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

        Issue Links

          Activity

          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Link This issue depends upon LUCENE-1045 [ LUCENE-1045 ]
          Gavin made changes -
          Link This issue depends on LUCENE-1045 [ LUCENE-1045 ]
          Grant Ingersoll made changes -
          Link This issue relates to SOLR-483 [ SOLR-483 ]
          Grant Ingersoll made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          Grant Ingersoll made changes -
          Attachment SOLR-324.patch [ 12374473 ]
          Stu Hood made changes -
          Link This issue blocks SOLR-440 [ SOLR-440 ]
          Grant Ingersoll made changes -
          Attachment SOLR-324.patch [ 12370859 ]
          Grant Ingersoll made changes -
          Link This issue depends on LUCENE-1045 [ LUCENE-1045 ]
          Grant Ingersoll made changes -
          Attachment SOLR-324.patch [ 12368765 ]
          Grant Ingersoll made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Grant Ingersoll made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          Grant Ingersoll made changes -
          Assignee Grant Ingersoll [ gsingers ]
          Grant Ingersoll made changes -
          Attachment SOLR-324 [ 12368169 ]
          Grant Ingersoll made changes -
          Field Original Value New Value
          Link This issue blocks LUCENE-1015 [ LUCENE-1015 ]
          Sergey Dryganets created issue -

            People

            • Assignee:
              Grant Ingersoll
              Reporter:
              Sergey Dryganets
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development