-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi,

I've got a problem with a self written component that is configured in
the "first-components" section of my SearchHandler ("/select"). When a
certain keyword is given in the query string, I want to write a redirect
URL to the response and stop processing (since otherwise the standard
query component also is invoked and normally performs the query request).

Is there some "standard" way to stop the processing of the components?

I managed to get it to work for a non distributed request by setting the
param "query" to false. But for a distributed request (querying two
shards), I run into a NullPointerException because there is no sortsSpec
in the ResponseBuilder object processed in
QueryComponent::createDistributedStats() (line 824).

Anybody got a tip for me?

Thanks in advance,
Marc

>>> whole stack trace

"error":{
    "trace":"java.lang.NullPointerException\r\n\tat
org.apache.solr.handler.component.QueryComponent.createDistributedStats(QueryComponent.java:825)\r\n\tat
org.apache.solr.handler.component.QueryComponent.regularDistributedProcess(QueryComponent.java:701)\r\n\tat
org.apache.solr.handler.component.QueryComponent.distributedProcess(QueryComponent.java:659)\r\n\tat
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:278)\r\n\tat
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:144)\r\n\tat
org.apache.solr.core.SolrCore.execute(SolrCore.java:2006)\r\n\tat
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777)\r\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:413)\r\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:204)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)\r\n\tat
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)\r\n\tat
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)\r\n\tat
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)\r\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat
org.eclipse.jetty.server.Server.handle(Server.java:368)\r\n\tat
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)\r\n\tat
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)\r\n\tat
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)\r\n\tat
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)\r\n\tat
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)\r\n\tat
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)\r\n\tat
org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)\r\n\tat
org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)\r\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\r\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\r\n\tat
java.lang.Thread.run(Thread.java:745)\r\n",
    "code":500}}


<<<

- -- 

Marc Eilens
Dipl.-Inform. (FH)

marc.eil...@itemis.de
http://www.itemis.de

itemis AG
Niederlassung Bonn
Bonner Talweg 42
53113 Bonn

Rechtlicher Hinweis:
Sitz der Gesellschaft: Lünen
Amtsgericht: Dortmund HRB 20621, USt-IdNr. DE 23 11 77 498
Vorstand: Jens Wagener (Vorsitzender), Wolfgang Neuhaus, Sebastian Neus,
Dr. Georg Pietrek, Jens Trompeter
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vors.), Michael Neuhaus, Jennifer
Fiorentino
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQIcBAEBAgAGBQJVONyaAAoJEAqV+wFRnxmM7r4QAMCcqQJjXr5OkecmPaoXC8ex
x8iUwcV4bQDBbf2d184/f2naU0Hm072PNwmSIRsdEnW0duh1spabn/KrfXnpHr0L
524Wzt0vGCwuP+iuk55femhEODZvWGmTVhWMafuryz+KITnqc9+3hjZV0O0Zu/wt
C6XQGESG9KYx5uBMfqWnPo1DMZwsAcKfzqZKs4I/MXloxnVkURYDaL0h72Npjaor
cTwbXF8fhjuofVTtG5HcT5+vze409zMdhfJ6Cs+9cr9D6mFfFUh7sIxq2F4LdRcg
0A1n+WyrZ4VzqYj2/NgjQid92ctHq87GJ+7zUAx599JuIWojUJT3cymhRPQR9dHh
4nyZSWJ+q0T7cwkmLiXPM5v6sXtRpQvCfVc3i/+X2Yk2AtbZuN/ptXQt5fvaTNA+
5YTrQecH89kIdMXhZxG0Oy+fHIiM5CBcOEOb8vDLnWOfWDgo3I5HJ796iZlAsvNk
ZdSZ1URLlxYJdWuXBeXkYHfgxNzOvuLcS3tKgo0zKcmkFcI9Sk1F4gTyvsok/Oag
Bzij18eHpdCPiN+gD/nILpgW8LvKLkSrYRXkPrNilymF3JMvatg/n6s4d13IpFwB
AXvZe52dx70/cNcH57LUV+KmjTLOkUbIsWcWvBQX8VqzCP3dWY91RYm6WMQgFGNZ
i3bZjYPLzpTn+aIr46t4
=jlEg
-----END PGP SIGNATURE-----


Reply via email to