Fix hard coded site URL in @username mention
Fix search

Update search code, change how to search.
Tested on Elasticsearch v1.4.1 and elasticsearch/elasticsearch v1.3.1.
Merge branch 'fix_username_mention' into myfix
Merge branch 'fix_search' into myfix