added validation based on search type to QueryEvent [finishes #76729100]