Uploaded image for project: 'mod-search'
  1. mod-search
  2. MSEARCH-125

Retrieve facets values for selected facets

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 1.4.0
    • Falcon Sprint 114, Falcon Sprint 115
    • 2
    • Falcon

    Description

      Purpose/Overview:
      If facet from the second page is selected, its value is not returned for the first request.

      Requirements/Scope:
      If the facet is selected it should be returned on the first facets page.

      Approach:
      https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-aggregations-bucket-terms-aggregation.html#_filtering_values_3 should be used.

      Acceptance criteria:

      • All selected facets are returned as a part of the first page

      Additional information:
      In the request: /search/instances/facets?facet=languages:6&query=languages==("eng" or "ger" or "pol") "pol" is not a part of the first response:

      {
      	"facets": {
      		"languages": {
      			"values": [
      				{
      					"id": "eng",
      					"totalRecords": 1967818
      				},
      				{
      					"id": "ger",
      					"totalRecords": 225042
      				},
      				{
      					"id": "fre",
      					"totalRecords": 175432
      				},
      				{
      					"id": "spa",
      					"totalRecords": 114739
      				},
      				{
      					"id": "rus",
      					"totalRecords": 94344
      				},
      				{
      					"id": "ita",
      					"totalRecords": 83643
      				}
      			],
      			"totalRecords": 6
      		}
      	},
      	"totalRecords": 1
      }
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                pavel_filippov Pavel Filippov
                magdaz Magda Zacharska
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases