solr - SolrJ not setting request handler - Stack Overflow
It's true that the visible effect in the "setRequestHandler" method is to just set the qt parameter. But that's not the end of the story with SolrJ.
When a SolrJ request is processed, if the qt parameter contains a string starting with a forward slash, SolrJ will change "/select" in the URL path to the value contained in that parameter before it sends the request to Solr. It will also send the qt parameter as-is to Solr, but the parameter itself usually doesn't matter.
If you send an actual request to Solr on the /select handler with qt set to "/all", Solr should ignore the qt parameter -- unless you set handleSelect to true in the requestDispatcher section of the solrconfig.xml. This is not recommended -- because it means that you can change the index through the /select handler, simply by setting qt to "/update".
Read full article from solr - SolrJ not setting request handler - Stack Overflow
No comments:
Post a Comment