Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Alternatively

Wikipedia as search engine, no Javascript, no "AI"

Query string "wrench tight spaces"

Basin_wrench is the #1 result

usage: sh 1.sh wrench tight spaces > 1.htm;firefox ./1.htm

   #!/bin/sh
   ns=$(
   for x in \
   0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 \
   100 101 \
   118 119 \
   710 711 \
   828 829 \
   2300 2301 2302 2303
   do
   printf \&ns$x=1
   done
   )
   export x=https://en.wikipedia.org
   echo "url=$x/w/index.php?search=$@$ns&fulltext=1&offset=0" \
   |(echo user-agent=\"\" ;
     echo header Accept:;
     tr \\40 +) \
   |curl -K/dev/stdin \
   |(echo "<base href=$x />";cat)


"type of wrench for tight spaces"

Basin_wrench is #3 result

Delete preposition: "of"

"type wrench for tight spaces"

Basin_wrench is #2 result

Delete preposition: "for"

"type of wrench tight spaces"

Basin_wrench is #2 result

Delete prepositions: "of", "for"

"type wrench tight spaces"

Basin_wrench is #2 result

Delete unnecessary noun "type" and preposition "of"

"wrench for tight spaces"

Basin_wrench is #1 result

Delete preposition "for"

"wrench tight spaces"

Basin_wrench is #1 result

"tight spaces wrench"

Basin_wrench is #1 result

"tight wrench spaces"

Basin_wrench is #1 result

Much less typing, no unnecessary nouns and prepositions

I like it, others might not

I also tried a number of less popular search engines with a non-AI search from the command line

Query string "type of wrench for tight spaces"

For several of them the #1 result was for star-plumbing.com

https://star-plumbing.com/what-kind-of-wrench-is-used-in-tig...


That only works for some queries, particularly simple ones. Even elaborating the given query into “type of wrench for tight spaces” puts “basin wrench” in 6th place below incorrect wrenches like “oil filter” and “hydraulic torque” (https://en.m.wikipedia.org/w/index.php?search=type+of+wrench...).


That's not the same search URL used in the comment

The "ns" parameters are significant

If use the URL in the comment with this query string then Basin_wrench is #3 result

Monkey_wrench is #1 and Wrench is #2




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: