Solr
  1. Solr
  2. SOLR-5528

Change New Suggester Response and minor cleanups

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7, Trunk
    • Labels:
      None

      Description

      It would be nice to have a simplified response format for the new Suggester Component.
      The proposed format is as follows:
      XML:

      <?xml version="1.0" encoding="UTF-8"?>
      <response>
         <lst name="responseHeader">
            <int name="status">0</int>
            <int name="QTime">32</int>
         </lst>
         <str name="command">build</str>
         <lst name="suggest">
            <lst name="ele">
               <int name="numFound">1</int>
               <arr name="suggestions">
                  <lst>
                     <str name="term">electronics and computer1</str>
                     <long name="weight">2199</long>
                     <str name="payload" />
                  </lst>
               </arr>
            </lst>
         </lst>
      </response>
      

      JSON:

      {
          "responseHeader": {
              "status": 0,
              "QTime": 30
          },
          "command": "build",
          "suggest": {
              "ele": {
                  "numFound": 1,
                  "suggestions": [
                      {
                          "term": "electronics and computer1",
                          "weight": 2199,
                          "payload": ""
                      }
                  ]
              }
          }
      }
      
      1. SOLR-5528.patch
        34 kB
        Areek Zillur

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Areek Zillur
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development