super refactor and add tests for FeedElementSearchView
Merge pull request #2369 from ngokevin/feedsearch2

optimize FeedElementSearchView