added func to get value of metadata by key from search results
fixed multiple calls bug