A queueing system of finite capacity with the server requiring a priority search for customers