complete adavanced search only and logic