Solr
  1. Solr
  2. SOLR-2417

Allow explain info directly to response documents

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      Currently explain information in displayed in the debugInfo part of the response. This requires clients to build a Map and link results later if they want them displayed together. It also does not nicely allow for multiple queries in one result.

      As part of SOLR-1566, we can add the explain info directly to the result

        Activity

        Hide
        Ryan McKinley added a comment -

        Added as part of SOLR-1566

        ?fl=id,_explain_
        

        will add the explain info inline.

        The final syntax is still in flux and will be determined in SOLR-2444

        Show
        Ryan McKinley added a comment - Added as part of SOLR-1566 ?fl=id,_explain_ will add the explain info inline. The final syntax is still in flux and will be determined in SOLR-2444
        Hide
        Ryan McKinley added a comment -

        On IRC, yonik suggested that the explain format should mimic follow what the debugQuery parameter would use.

        I'm don't really agree – long term I would even suggest dropping the explain section from debug and letting you specify it as an inline parameter.

        As is, the options are to display it as text,named list or html

        ?fl=id,_explain_
        ?fl=id,_explain:text_
        ?fl=id,_explain:nl_
        ?fl=id,_explain:html_
        Show
        Ryan McKinley added a comment - On IRC, yonik suggested that the explain format should mimic follow what the debugQuery parameter would use. I'm don't really agree – long term I would even suggest dropping the explain section from debug and letting you specify it as an inline parameter. As is, the options are to display it as text,named list or html ?fl=id,_explain_ ?fl=id,_explain:text_ ?fl=id,_explain:nl_ ?fl=id,_explain:html_
        Hide
        Ryan McKinley added a comment -

        Syntax changed to:

        ?fl=id,[explain]
        
        ?fl=id,[explain style=text]
        
        ?fl=id,[explain style=nl]
        
        Show
        Ryan McKinley added a comment - Syntax changed to: ?fl=id,[explain] ?fl=id,[explain style=text] ?fl=id,[explain style=nl]

          People

          • Assignee:
            Ryan McKinley
            Reporter:
            Ryan McKinley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development