Adds advanced query to search.
Changes $.expandable to not add extra characters when displaying placeholder so that the it's tidier.