I want to create a simple search engine that can count the number of properties that match on a user.
I am using a field in JSON format that lists the properties, and when the user enters a search it gets fetched as an array.
I would like to compare the input array with the number of properties that match in the JSON list.
And return the whole in two columns: the first which contains the number of tags which match. And the second which contains the list of tags that have matched.
Here is a real life example of what I'm trying to do:
I guess I have to use a combination of JSON_SEARCH and COUNT, but I can't seem to find the correct syntax ...
