WIKI-420 Incorrect behavior of Search Completion

Fix description: Get the correct attachment's name