[HN Gopher] How not to break a search engine ___________________________________________________________________ How not to break a search engine Author : akpa1 Score : 16 points Date : 2021-07-03 19:43 UTC (3 hours ago) (HTM) web link (about.sourcegraph.com) (TXT) w3m dump (about.sourcegraph.com) | walrus01 wrote: | If you want to see a very bad example of a broken search engine, | use the Google voice Assistant to search for "how many raccoons | can fit" | amelius wrote: | I want to know how to _benchmark_ a search engine. | sqs wrote: | @rijnard (the blog post author) is awesome, and all of the code | changes he talks about in the blog post are public. You can see | all of his recent changes to search code in | https://sourcegraph.com/search?q=context:global+repo:%5Egith... | in case you want to follow along by just reading the code (that | query shows all of his diffs that touch paths containing | `search`). | 1970-01-01 wrote: | I was playing with breaking them a long time ago. Here are some | interesting searches that seem to do almost nothing: | | Quoted Single ASCII Chars: | | https://search.yahoo.com/search?p="~" | | https://www.google.com/search?&q="~" | | https://www.bing.com/search?q="~" | | https://search.yahoo.com/search?p="`" | | https://www.google.com/search?&q="`" | | https://www.bing.com/search?q="`" | | https://search.yahoo.com/search?p="!" | | https://www.google.com/search?&q="!" | | https://www.bing.com/search?q="!" | | https://search.yahoo.com/search?p="@" | | https://www.google.com/search?&q="@" | | https://www.bing.com/search?q="@" | | https://search.yahoo.com/search?p="#" | | https://www.google.com/search?&q="#" | | https://www.bing.com/search?q="#" | | https://search.yahoo.com/search?p="$" | | https://www.google.com/search?&q="$" | | https://www.bing.com/search?q="$" | | https://search.yahoo.com/search?p="%" | | https://www.google.com/search?&q="%" | | https://www.bing.com/search?q="%" | | https://search.yahoo.com/search?p="^" | | https://www.google.com/search?&q="^" | | https://www.bing.com/search?q="^" | | https://search.yahoo.com/search?p="&" | | https://www.google.com/search?&q="&" | | https://www.bing.com/search?q="&" | | https://search.yahoo.com/search?p=" _" | | https://www.google.com/search?&q="_ " | | https://www.bing.com/search?q=" _" | | https://search.yahoo.com/search?p="(" | | https://www.google.com/search?&q="(" | | https://www.bing.com/search?q="(" | | https://search.yahoo.com/search?p=")" | | https://www.google.com/search?&q=")" | | https://www.bing.com/search?q=")" | | https://search.yahoo.com/search?p="-" | | https://www.google.com/search?&q="-" | | https://www.bing.com/search?q="-" | | https://search.yahoo.com/search?p="_" | | https://www.google.com/search?&q="_" | | https://www.bing.com/search?q="_" | | https://search.yahoo.com/search?p="+" | | https://www.google.com/search?&q="+" | | https://www.bing.com/search?q="+" | | https://search.yahoo.com/search?p="=" | | https://www.google.com/search?&q="=" | | https://www.bing.com/search?q="=" | | https://search.yahoo.com/search?p="%" | | https://search.yahoo.com/search?p="\" | | https://search.yahoo.com/search?p=%22\%22 | | https://search.yahoo.com/search?p="#" | | https://search.yahoo.com/search?p=":" | | https://search.yahoo.com/search?p="%" | | https://www.bing.com/search?q="%28%29" | | https://www.bing.com/search?q="_. _" | | https://www.bing.com/search?q="==" | | https://www.bing.com/search?q="$" | | https://www.bing.com/search?q="+" | | https://www.google.com/search?&q="~" | | https://www.google.com/search?&q="`" | | https://www.google.com/search?&q="!" | | https://www.google.com/search?&q="!!" | | https://www.google.com/search?&q="@" | | https://www.google.com/search?&q="#" | | https://www.google.com/search?&q="$" | | https://www.google.com/search?&q="%" | | https://www.google.com/search?&q="^" | | https://www.google.com/search?&q="&" | | https://www.google.com/search?&q=_ #quotes do nothing here | | https://www.google.com/search?&q="\*" #same as above | | https://www.google.com/search?&q=":)" | | https://www.google.com/search?&q="~" | | https://www.google.com/search?&q="\" | | https://www.google.com/search?&q=")" | | https://www.google.com/search?&q="%" ___________________________________________________________________ (page generated 2021-07-03 23:00 UTC)