1578-search-box-fix-when-same-keyword-twice

We're comparing the content to append the "AND" for the query which is logically wrong and is causing issue if last two keywords are same.