Ok, thanks for the clarification. I'll open a Jira issue.


On Fri, 26 Jan 2018 at 01:21, Yonik Seeley <ysee...@gmail.com> wrote:

> Yes, please open a JIRA issue.
> The elevate component modifies the sort parameter, and it looks like
> that doesn't play well with cursorMark, which needs to
> serialize/deserialize sort values.
> We can either fix the issue, or at a minimum provide a better error
> message if cursorMark is limited to sorting on "normal" fields only.
>
> -Yonik
>
>
> On Wed, Jan 24, 2018 at 3:19 PM, Greg Roodt <gro...@gmail.com> wrote:
> > Given the technical nature of this problem? Do you think I should try
> > raising this on the developer group or raising a bug?
> >
> >
> >
> > On 24 January 2018 at 12:36, Greg Roodt <gro...@gmail.com> wrote:
> >
> >> Hi
> >>
> >> I'm trying to use the Query Eleveation Component in conjunction with
> >> CursorMark pagination. It doesn't seem to work. I get an exception. Are
> >> these components meant to work together?
> >>
> >> This works:
> >> enableElevation=true&forceElevation=true&elevateIds=MAAMNqFV1dg
> >>
> >> This fails:
> >> cursorMark=*&enableElevation=true&forceElevation=true&
> >> elevateIds=MAAMNqFV1dg
> >>
> >> Here is the stacktrace:
> >>
> >> """
> >> 'trace'=>'java.lang.ClassCastException: java.lang.Integer cannot be cast
> >> to org.apache.lucene.util.BytesRef at org.apache.solr.schema.FieldType.
> >> marshalStringSortValue(FieldType.java:1127) at org.apache.solr.schema.
> >> StrField.marshalSortValue(StrField.java:100) at org.apache.solr.search.
> >> CursorMark.getSerializedTotem(CursorMark.java:250) at
> >>
> org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1445)
> >> at org.apache.solr.handler.component.QueryComponent.
> >> process(QueryComponent.java:375) at org.apache.solr.handler.
> >> component.SearchHandler.handleRequestBody(SearchHandler.java:303) at
> >>
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:177)
> >> at org.apache.solr.core.SolrCore.execute(SolrCore.java:2503) at
> >> org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:710) at
> >> org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516) at
> >>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:382)
> >> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:326)
> >> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> >> doFilter(ServletHandler.java:1751) at org.eclipse.jetty.servlet.
> >> ServletHandler.doHandle(ServletHandler.java:582) at
> >>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> >> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
> >> at org.eclipse.jetty.server.session.SessionHandler.
> >> doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.
> >> handler.ContextHandler.doHandle(ContextHandler.java:1180) at
> >>
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
> >> at org.eclipse.jetty.server.session.SessionHandler.
> >> doScope(SessionHandler.java:185) at org.eclipse.jetty.server.
> >> handler.ContextHandler.doScope(ContextHandler.java:1112) at
> >>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> >> at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
> >> ContextHandlerCollection.java:213) at org.eclipse.jetty.server.
> >> handler.HandlerCollection.handle(HandlerCollection.java:119) at
> >>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
> >> at
> org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
> >> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
> >> at org.eclipse.jetty.server.Server.handle(Server.java:534) at
> >> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) at
> >>
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
> >> at org.eclipse.jetty.io
> .AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
> >> at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) at
> >> org.eclipse.jetty.io
> .SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
> >> at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.
> >> executeProduceConsume(ExecuteProduceConsume.java:303) at
> >> org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.
> >> produceConsume(ExecuteProduceConsume.java:148) at
> >> org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(
> >> ExecuteProduceConsume.java:136) at org.eclipse.jetty.util.thread.
> >> QueuedThreadPool.runJob(QueuedThreadPool.java:671) at
> >>
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
> >> at java.lang.Thread.run(Thread.java:748)
> >> """
> >>
> >> Any idea what's going wrong?
> >>
> >> Greg
> >>
> >>
>

Reply via email to