Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-907

Empty facet list is returned in JSON response of Featured Search

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • contenthub-0.10.0
    • Contenthub
    • None

    Description

      When accept header is set to "application/json", an empty list is returned for facets in Feature Search although there is no problem with "text/html".

      Although some facets exist, there is not any facet in result for the following command:

      curl -i -H "Accept:application/json" "http://localhost:8080/contenthub/contenthub/search/featured?queryTerm=paris"

      response:
      {
      "documents": [

      { "localid": "urn:content-item-sha1-d8cb233824c493e80d744a8120469e40be97444d", "mimetype": "text\/plain", "title": "paris", "enhancementcount": 4 }

      ],
      "facets": [],
      "relatedkeywords": [

      {"paris": []}

      ]
      }

      Attachments

        1. featured-search-facets.patch
          2 kB
          Meriç Taze

        Activity

          People

            Unassigned Unassigned
            meric Meriç Taze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: