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

Suggester Component results parsing

    XMLWordPrintableJSON

Details

    Description

      Currently SolrJ org.apache.solr.client.solrj.response.QueryResponse is not managing suggestions coming from the Suggest Component .

      It would be nice to have the suggestions properly managed and returned with simply getter methods.

      Current Json :

      <lst name="suggest">
      <lst name="dictionary1">
      <lst name="queryTerm">
      <int name="numFound">2</int>
      <arr name="suggestions">
      <lst>
      <str name="term">suggestion1</str>..
      <str name="term">suggestion2</str>…
      </lst>
      </arr>
      </lst>
      </lst>..

      This will be parsed accordingly .
      Producing an easy to use Java Map.
      Dictionary2suggestions

      Attachments

        1. SOLR-7719.patch
          15 kB
          Alessandro Benedetti
        2. SOLR-7719.patch
          15 kB
          Alessandro Benedetti

        Activity

          People

            teofili Tommaso Teofili
            abenedetti Alessandro Benedetti
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified