Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19736

When performing a full text search against Alfresco and specifying an accept-language header to retrieve a specific language, including specific facetFields, the facets returned also include all other languages.

    Details

    • Bug Priority:
      Category 4
    • ACT Numbers:

      00966680

      Description

      Description
      When performing a full text search against Alfresco and specifying an accept-language header to retrieve language specific results only, including specific facetFields, the facets returned also include all other languages.

      Supporting evidence

      Steps to reproduce
      1. Add values for three languages (en,de,nl): cm:title and cm:description as well.
      2. Search with Accept-Language:en, as follows:
       POST /alfresco/api/default/public/search/versions/1/search HTTP/1.1
       Accept-Language: en
       Content-Type: application/json
       Authorization: Basic 
       Postman-Token:

      {
       "query" :

      {  "query" : "=name:'multi language test 1'"  }

      ,
       "facetFields" : {"facets":[

      {"field":"cm:title"}

      ,{"field":"cm:description"}]}
       }

       

      Expected Behaviour
      When using facetFields in search and querying using an accept-language, only the results for the requested language should be returned.

      Observed Behaviour
      When specifying an accept-language header to retrieve specific language only, the facetFields are exempted from the filter and facetFields for all languages are returned:

      {
       "list": {
       "pagination":

      {  "count": 1,  "hasMoreItems": false,  "totalItems": 1,  "skipCount": 0,  "maxItems": 100  }

      ,
       "context": {
       "consistency":

      {  "lastTxId": 37476  }

      ,
       "facetsFields": [
       {
       "label": "cm:title",
       "buckets": [
       

      {  "label": "Dies ist ein deutscher Titel",  "filterQuery": "cm:title:\"Dies ist ein deutscher Titel\"",  "count": 1  }

      ,
       

      {  "label": "Dit is een Nederlandse titel",  "filterQuery": "cm:title:\"Dit is een Nederlandse titel\"",  "count": 1  }

      ,
       

      {  "label": "this is an english title",  "filterQuery": "cm:title:\"this is an english title\"",  "count": 1  }

       ]
       },
       {
       "label": "cm:description",
       "buckets": [
       

      {  "label": "Dies ist eine deutsche Beschreibung",  "filterQuery": "cm:description:\"Dies ist eine deutsche Beschreibung\"",  "count": 1  }

      ,
       

      {  "label": "Dit is een Nederlandse beschrijving",  "filterQuery": "cm:description:\"Dit is een Nederlandse beschrijving\"",  "count": 1  }

      ,
       

      {  "label": "this is an english description",  "filterQuery": "cm:description:\"this is an english description\"",  "count": 1  }

       ]
       }
       ]
       },
       "entries": [
       {
       "entry": {
       "createdAt": "2018-06-22T18:12:51.578+0000",
       "isFolder": true,
       "search":

      {  "score": 1  }

      ,
       "isFile": false,
       "createdByUser":

      {  "id": "name@name.com",  "displayName": "Name Name"  }

      ,
       "modifiedAt": "2018-06-22T18:32:05.065+0000",
       "modifiedByUser":

      {  "id": "name@name.com",  "displayName": "Name Name"   }

      ,
       "name": "multi language test 1",
       "location": "nodes",
       "id": "7ff85457-4f16-453b-8cb0-2e7e2f678149",
       "nodeType": "cm:folder",
       "parentId": "61841f5d-3984-4fda-a9cc-42febf6e9685"
       }
       }
       ]
       }
      }

        Attachments

          Activity

            People

            • Assignee:
              searchAndDiscovery Search and Discovery
              Reporter:
              dkitsantonis Despina Kitsantonis [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: