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

Solr WebGui does not correctly prefill query parameters

    XMLWordPrintableJSON

Details

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

    Description

      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:

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

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

      [c]
      q.op=AND
      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.

      http://localhost:8983/solr/#/collection1/query?q=Maxtor%20Samsung&fl=id,name,features&wt=json&indent=true&defType=edismax&q.op=AND&debugQuery=on

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: