WIKI-574 Incorrect behavior of Search Completion

Fix description:
* Make wiki search textbox autocomplete:
** support searching attachments
** clicking on an attachment on the result will goto a download link(rest link)