8000 qt query param is not working when handleSelect on the requestDispatcher config is not set · Issue #242 · lbdremy/solr-node-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

qt query param is not working when handleSelect on the requestDispatcher config is not set #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cunum opened this issue Jun 16, 2021 · 0 comments

Comments

@cunum
Copy link
cunum commented Jun 16, 2021

In the Java implementation SolrJ you can set the request handler with the qt param even when handleSelect on the requestDispatcher config is not set, in this library it is not working, qt param doesn't work.

I propose to also implement this by changing this part of the solr.js

Client.prototype.search = function (query, callback) { return this.get(this.SELECT_HANDLER, query, callback);};

The hardcoded value ("select") should be replaced by the qt param (if it is set). Another solution would be to add a new query param besides qt called something like requestHandler, so you can change the request handler here dynamically.

https://cwiki.apache.org/confluence/display/solr/SolrRequestHandler#SolrRequestHandler-OldhandleSelect=trueResolution(qtparam)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0