The bleve API has changed slightly, too.
Use a separate, simpler struct for indexing. Store unique IDs in the index directly instead of parsing them back into a Metadata object. Add more thorough tests.