Added exclude terms option to advanced search

fixes #654