add index_all function to search utils
serialize metadata json