Searching for a job when you already have one can be dangerous. If you are found out, you may be fired. More likely, your chance to work on good projects, the trust of your boss, and morale of your team will all be gone.
Your best bet may be to tell your boss and give him a chance to do things to keep you. But, if you decide to keep your job search secret, there are some real basic things you have to remember.