Hey,
I am calculating the number of matching elements in pairs of documents in a collection. Fields are mostly categorical like professional interests, hobbies etc. I am thinking about keeping each category for a particular parameter as a separate field: if possible hobbies a user can choose from are soccer, baseball, skating than each user would have either 0 or 1 corresponding to each of them depending on whether they chose it as their hobby.
However, I am not sure about how to best store and compare some custom categories a user can manually enter, i.e. something in the “other” field. There could be any number of unique values, and each user can have multiple of them. Comparing arrays of items for each user feels suboptimal.
Any suggestions on how to do it right? Thank you!