Implemented keyword and all searching in SearchCommand.