Is search type really user-friendly?

I have seen many websites using category list in the search box. It's really useless for me to choose the category and then to search the keyword. Is this search type really user-friendly?

Google Drive: Search Drive -- a select list with the label "Type" shows the value "Any"

Amazon: the select list next to the search field shows the value "Jewellery"