lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Rowe (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SOLR-6061) Exception when sorting on a date field when using cursorMark parameter.
Date Mon, 12 May 2014 16:21:16 GMT

     [ https://issues.apache.org/jira/browse/SOLR-6061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Steve Rowe resolved SOLR-6061.
------------------------------

    Resolution: Invalid
      Assignee: Steve Rowe

Whew, good to hear, thanks for bringing closure.

No need to delete, I've just marked the issue as Invalid.

> Exception when sorting on a date field when using cursorMark parameter.
> -----------------------------------------------------------------------
>
>                 Key: SOLR-6061
>                 URL: https://issues.apache.org/jira/browse/SOLR-6061
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.8
>            Reporter: Ramon Salla
>            Assignee: Steve Rowe
>              Labels: cursorMark,, datefield
>
> I get the next exception when using new cursorMark pagination search and sorting using
a date field (in this case I'm using a TrieDate).
> {code}
> "error": {
>     "msg": "java.lang.Long cannot be cast to java.lang.String",
>     "trace": "java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String\n\tat
org.apache.solr.schema.FieldType.unmarshalStringSortValue(FieldType.java:993)\n\tat org.apache.solr.schema.StrField.unmarshalSortValue(StrField.java:92)\n\tat
org.apache.solr.search.CursorMark.parseSerializedTotem(CursorMark.java:232)\n\tat org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:158)\n\tat
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)\n\tat
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)\n\tat
org.apache.solr.core.SolrCore.execute(SolrCore.java:1952)\n\tat org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)\n\tat
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)\n\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\n\tat
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)\n\tat
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)\n\tat
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:368)\n\tat
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)\n\tat
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)\n\tat
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)\n\tat
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)\n\tat
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)\n\tat
org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)\n\tat
org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\n\tat
java.lang.Thread.run(Thread.java:745)\n",
>     "code": 500
>   }
> {code}
> The query is like this:
> {code}
> select?q=*%3A*&cursorMark=AoI%2FITAwNjZmNzA1N2UzZTVjZWY2NDQyMGY5NmY2ZDQ2ZDE0ZGUwODJiMTVkZTBmZWI3ZTk5NGNkZjZmNWViMDEzZDJ4v%2BDu%2Br0C&rows=10&sort=createdAt+asc%2Cid+asc
> {code}
> Related Issue could be:
> https://issues.apache.org/jira/browse/SOLR-5920



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message