[
https://issues.apache.org/jira/browse/STANBOL-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Suat Gonul resolved STANBOL-907.
--------------------------------
Resolution: Fixed
Facets are serialized into the JSON result as of revision #1442060.
> Empty facet list is returned in JSON response of Featured Search
> ----------------------------------------------------------------
>
> Key: STANBOL-907
> URL: https://issues.apache.org/jira/browse/STANBOL-907
> Project: Stanbol
> Issue Type: Bug
> Components: Contenthub
> Reporter: Meric Taze
> Priority: Minor
> Attachments: featured-search-facets.patch
>
>
> 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": []}]
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira