Oracle SQL Graph connector - columns shows comma separated filter values and are also duplicated #4161
Unanswered
mw-new-test
asked this question in
Q&A
Replies: 1 comment 5 replies
-
You would have to develop more logic to the refiner web part to allow it to split values on a character at the data layer, or create a custom refinement handlebar template which splits the values for you. You may be able to get the SQL used for the values to split as well and return multiple rows back? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version used
4.9.1
Describe the bug
We have Oracle data source which we have added to the MS Search index. The Oracle data source is basically a SQL view consisting of columns and rows/results that are indexed. We have certain columns in the SQL view. Column1 - Products, Column2 - Topics
Each row/result in the SQL Table/view can be associated with multiple products and multiple topics.
Ex of SQL View:
The column Products and Topics have comma separated values (because they are of type text/VARCHAR)
When these columns are populated in PnP Modern search filters webpart, they show up as text.
There is no way to split the comma separated values and only populate unique values and then perform a CONTAINS refinement instead of EQUALS search with the Filters.
Example:
Filter values for Products should be:
Filter values for Topics should be:
It would be good to know if filters can be split by values if they consist of comma separated values and show only unique ones.
To Reproduce
Detailed steps to reproduce the behavior:
Expected behavior
There should be a way to split the comma separated values as individual values and eliminate duplicates within such Filters
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions