change search with elasticsearch

add support for permlink and search attachment