[ADF-3401] The filter facets are not reseted when user makes a new search query Created: 27-Jul-18  Updated: 03-May-19  Resolved: 14-Mar-19

Status: Done
Project: Apps Development Framework
Component/s: Search Filter
Affects Version/s: 2.4.0
Fix Version/s: 3.1.0

Type: Bug Priority: Major
Reporter: Suzana Dirla [X] (Inactive) Assignee: Geeta Ayyalasomayajula [X] (Inactive)
Resolution: Resolved Votes: 2
Labels: ACA
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


Attachments: File BugACA-1623.mov     File facets-update-ADF-bug.mp4    
Issue Links:
Bug Priority:
Category 3
Sprint: ADF Sprint 83, ADF Sprint 84, ADF Sprint 85, ADF Sprint 86, ADF Sprint 87, ADF Sprint 88
Epic Link: Search results


How to reproduce on ADF

Steps to reproduce:

  1. login as any user to http://adfdev.envalfresco.com
  2. search for any term that will result in 0 (or very few) results found (e.g. 'dd')
  3. observe the search filters displayed
  4. search for * term
  5. observe the search filters

Expected result:

  • the search filters should be populated with new facet items

Actual result:

  • there are no new facet items displayed, only the count number is updated for the already displayed ones

Refresh of the browser shows the correct facet items with their count numbers.


How to reproduce on ACA


  • any user is created 
  • user is logged in to ACA
  • user creates a site 
  • user creates a file in Personal Files or File Libraries -> site-name
  • user search for ( * )
  • user marks some filters (e.g. "Size" - Medium and "Location" - Repository)

Steps to reproduce:

  1. Go to Personal Files and then make a new search query (type "file" in the search field and press "Enter" key button)
  2. Observe the search filter panel 

Expected result:

  • The filter facets from the first search query should be reseted 

Actual result:

  • The filter facets from the first search query (and also the number of the results - this was fixed with ADF-3400) are not reseted 


  • I attached a video with the bug
  • Only if you refresh the browser the filter facets are reseted

Comment by Suzana Dirla [X] (Inactive) [ 04-Sep-18 ]

The bucket number issue is fixed by ADF-3400. But... the display of the facets still does not reset. For example: if on a search, the modified date 'Today' was not initially shown, this will not be shown even if the user searches for something he did modify today - Only a refresh of the page would show it.

Comment by Suzana Dirla [X] (Inactive) [ 04-Sep-18 ]

A temporary workaround was setting from app.config.json the mincount to 0. This way all facets are visible even if they are empty. Note that this workaround can not be applied for 'facetQueries' because at the moment do not have the possibility to have a different mincount than the default of 1.
A right fix must be found - that would work also if mincount is set to 1.

Generated at Mon Jul 13 09:44:33 BST 2020 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.