Optimal data architecture for tagging, clouds, and searching (like StackOverflow)?
问题 I'd love to know how Stack Overflow's tagging and search is architected, because it seems to work pretty well. What is a good database/search model if I want to do all of the following: Storing Tags on various entities, (how normalized? i.e. Entity, Tag, and Entity_Tag tables?) Searching for items with particular tags Building a tag cloud of all tags that apply to a particular search result set How to show a tag list for each item in a search result? Perhaps it makes sense to store the tags