How to add cabinet and tags in indexes?

How do I link documents to a tag or cabinet?