Actually a better way to exclude ingredients is to use the filters. You select an ingredient category in the right "Only Show..." column then click the + to change it to a -. This is explained further in Help. As lkgrover said, you do need to be aware that some store-cupboard ingredients are not listed in small quantities so even if you exclude that ingredient e.g. flour, you may still get some recipes with small amounts of the ingredient.
A word search is not as precise a match as the category and ingredient tags because with recipes and ingredients the word does not always appear in the name e.g. pasta may be listed as ramen or soba or bean thread noodles etc. Whereas if you select the entire categories of Long pasta, Noodles and Pasta shapes then exclude them you will be cutting out all pasta and noodles ingredients rather than just ingredients that contain the word "pasta".
You also have to be aware that recipes for an ingredient rather than containing an ingredient will not be excluded if you exclude the ingredient filters. This isn't an issue for most ingredients but in the case of pasta, you would want to enter -pasta in the word search to also exclude all recipes with pasta in the name. So you can see how that search would look, here are the search results for the Library.