Adding metadata object to index.