Made consistent and simplified code to show search placeholders
Fixed doc
Merge pull request #2954 from dinhviethoa/search-fixes-2

Made consistent and simplified code to show search placeholders