Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6404

Solr WebGui does not correctly prefill query parameters



    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 4.9
    • None
    • Admin UI
    • None


      In my custom application that sends requests to Solr, I log the Solr query requests for debugging purposes.

      To do so, I append the original query parameters from my SolrJ select request (see org.apache.solr.client.solrj.SolrQuery) to my Solr WebGui URL like this:

      String debuggingUrl = "http://my-machine-name:8080/Solr/#/MyCore/query?" + String.valueOf(solrQuery) + "&debugQuery=on";

      When the debuggingUrl is later opened in a web browser, the query parameters are conveniently prefilled in the textfields of the form and the query can be sent and analyzed.
      Great features. Saved me a lot of time when I was finetuning my queries.

      Unfortunately, not all parameters that occur in my debuggingUrl are taken over in the web form correctly.
      Not knowing the full range of possible parameters, I have not performed an exhaustive test, but I can confirm that the following currently fail:

      There is a check box named "edismax" in the form, but the box is not pre-checked, while it actually should be.

      There is a check box named "debugQuery" in the form, but the box is not pre-checked, while it actually should be.

      There is no text field or check box or dropdown item named "q.op".
      Not even after checking on "dismax" and "edismax" which both offer additional parameters to be set.
      However, there should be input option to set this parameter and it should be preset when "q.op=AND" is defined in the URL.

      The parameters listed as [a], [b] and [c] are important to my use case, that's why I noticed that they are not correctly handled.
      However, there might be others that are missing or incorrectly handled.

      The issue described above can be reproduced using the following URL on a standard example Solr instance on Jetty.



        Issue Links



              steffkes Stefan Matheis
              jafurrer Jakob Furrer
              0 Vote for this issue
              1 Start watching this issue