Advanced search allows to search by words or quoted phrases.
You can use "-" character before words or phrases to exclude them.
You can also use search flags to filter search results:
:m — your posts
:r — replies to your posts
:a — posts with attachments
:d — deleted posts
:e — edited posts
:n — new posts
:op — posts by original poster
Flags can be excluded using ":-" characters.