Extend the behaviour of the DEFAULT filter selections by applying also items from search (part 2: use of search terms found in dimension values)
As a .Stat DE user,
I want the dataflow visualisations to take into account the (perfect match) search hits,
So that the initial dataflow views present as much as possible the data that I'm looking for.
Constraints
- Overwrites the selections defined in the DEFAULT annotations for the concerned dimensions.
- But it fully preserves the behaviour implemented in #71 (closed).
Specifications
If the free-text search is used and a "perfect match" (excluding non-alphanumeric characters) search hit is found within a dimension value and if such a dimension has no facet selection then instead of DEFAULT selections automatically select the (perfect match) value(s) in the viz filter for that dimension. Do this for all such dimensions.
Example:
In the DF "SDMX-CountryData" visualisation:
- the "Series" dimension should only have the value "GDP (current prices)" auto-selected
- the "Reference Area" dimension should only have the value "France" auto-selected
- the other dimensions apply the DEFAULT selections
Note: In case the "Series" search facet had a different selection, then that dimension value would be auto-selected instead.
In the DF "SDMX_-CountryData_UIS_UNData" visualisation:
- the "Reference Area" dimension should only have the value "France" auto-selected