-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.1.20 EE GA2, 6.1.30 EE GA3, 6.1.X EE, 6.2.10 EE GA1, 6.2.X EE
-
Fix Version/s: 6.1.X EE, 6.2.4 CE GA5, 6.2.X EE
-
Component/s: Web Search, Web Search > Search Widgets, ~[Archived] WCM
-
Branch Version/s:6.2.x, 6.1.x
-
Backported to Branch:Committed
-
Story Points:9
-
Fix Priority:2
-
Git Pull Request:
Reproduction Steps:
- Add a Search Portlet to a page
- Go to the Search Portlet's configuration and choose Advanced below Display Settings
- Add the following Search Configuration instead of the default:
{"facets": [{ "displayStyle": "range", "fieldName": "companyId", "static": false, "data": { "ranges": [ { "range": "[0 TO 1]", "label": "a" }, { "range": "[2 TO 3]", "label": "b" } ], "frequencyThreshold": 0 }, "weight": 1.1, "className": "com.liferay.portal.kernel.search.facet.RangeFacet", "label": "any-label", "order": "OrderHitsDesc" }]}
- Search for test
- Click on "b"
Experienced behavior: The facet values are not displayed at the left. b isn't displayed above Any Range and you don't have the chance to remove it
Expected behavior: At the left both a and b should be displayed, b value should be displayed as selected, and above Any Range b should be displayed with the chance to remove it. Basically, everything should be displayed as in the case if you clicked on "a", even if in this case no results were found.
Trunk is not affected as range.jsp was removed by LPS-54471, so "range" is not a valid display style there.
- relates
-
LPE-14262 Selecting a range with 0 results prevents correct rendering of range facets
-
- Closed
-