I built a system that I designed to be a file system replacement. It can efficiently manage the metadata for hundreds of millions of files without a separate indexing system that can become out of sync with the actual data. You can attach dozens of metadata tags to each file and query for every file that has a certain tag or other attribute (size, type, datetime stamp, etc). It works a lot like a database in that results are returned almost instantly.