Settings

Theme

Google Images: error when you search for anything that starts with a dash

google.com

17 points by TonnyGaric 7 years ago · 6 comments

Reader

azhenley 7 years ago

The - excludes the next term from results, so you are searching for nothing here.

A normal Google search returns no result, so Images must be handling it differently.

samjbobb 7 years ago

The dash is the NOT operator. This is the error that occurs when the query contains only NOT terms. It’s common to check for this special case in query processing and throw an error. Otherwise it’s easy to write a query that returns all or nearly all of the documents in the index.

Try `-1 2`, `-1 -2`, and `1 2`

protothomas 7 years ago

More interestingly perhaps searching for “<term> -n to n” where n is an integer returns no results (e.g https://www.google.co.uk/search?q=google+-1+to+1

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection