DE perfect-match free-text isn't applied to viz when it's a child item
According to our specs, "if a free-text search is used and a “perfect match” (excluding non-alphanumeric characters) search hit is found within a dimension value, and if such dimension has no facet selection, then instead of DEFAULT selections, automatically the (perfect match) value(s) is selected in the filter of the data visualisation page for that dimension."
This is working only partially, because when the perfect match dimension value is a child within a hierarchical dimension, then it fails to be selected in viz page, in both DevOps-QA and oecd-prod.
Example
- go to https://de-qa.siscc.org/ and search with keywords "brazil"
- from search result, click on "Satisfaction with public services - Government at a glance quantitative indicators, 2023 edition"
- in this case, "Australia" is DEFAULT and still selected, however "brazil" was a perfect match and should have replaced the default selection for "Reference area" even if "brazil" is child item of "Non-OECD economies".
See recording showing the issue in oecd-prod: recording.mkv
Original description
I am not sure how to best describe this issue. When a visitor searches for a keyword that is a code in a dimension code list, the search may return the correct data flows. However when the user clicks on the dataflow, the data is not filtered accordingly. This confuses the user because they think they would get data for that particular code.