removing empty synonyms when using search result as source