[ 
https://issues.apache.org/jira/browse/STANBOL-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Meric Taze updated STANBOL-907:
-------------------------------

    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": []}]
}

  was: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".

    
> 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
>
> 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

Reply via email to