Spotlight indexes at the file level, so a file containing a complicated data structure may need to be split into a set of files for Spotlight to index it in a useful way.
Can you use MacFUSE to achieve this more dynamically?
Will Spotlight index a MacFUSE volume?
Can MacFUSE handle the necessary per-file metadata?
Can a MacFUSE process notify Spotlight when attributes of a file change?