So I will have a fairly large list of plot keywords in an xml for each movie, where they will be fed into each Movie instance that I create in memory.
But I don’t know how I should implement this?
It’s similar to IMDb’s.
I want this to give me the ability to find all movies that have say ‘Car Crash’ or ‘Deception’. or ‘Scene After End Credits’ plot keywords etc.
How should define this type? Should it be a list? How can I best implement this? Of top off my head I can use List and then see if the request keyword(s) are in each Movie’s PlotKeywords list. But I feel like there is a better way to model this and get the result faster or cleaner, etc.
Should plot keywords be strings or a custom type? How should they be defined and stored?
Any ideas?
I would treat the keywords similar to ‘tags’ is other applications. That’s essentially what they come down to. So it would be a many-to-many relationship between a
TagandMovie