this post was submitted on 15 May 2024
1305 points (98.5% liked)

Programmer Humor

19623 readers
2719 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] jonasw@discuss.tchncs.de 20 points 6 months ago* (last edited 6 months ago) (1 children)

Kagi:

First result is the official documentation with the page that contains information about the in operator

This was the result: https://www.postgresql.org/docs/9.0/functions.html

BUT it is the documentation for 9.0

Though if I would use postgresql documentation very often I could just use the Kagi feature that rewrites URLs with a regex, so I can replace it always with the latest version.

Kagi Documentation for that feature:

https://help.kagi.com/kagi/features/redirects.html#redirects-url-rewrites

Some use cases of redirects include:

  • Change domains to a preferred domain (reddit.com to old.reddit.com)
  • Fixing links to outdated documentation with bad SEO
  • Rewriting proxied pages (like Google AMP) to their source URL
  • Changing any http link to https
[–] Woovie@lemmy.world 10 points 6 months ago (1 children)

Interesting, my Kagi results gave W3Schools, geeks for geeks, and postgresqltutorial.com before the official docs, but hey still way better than OP's results!

[–] jonasw@discuss.tchncs.de 10 points 6 months ago (1 children)

Kagi has search personalization where you can lower/raise/pin specific domains (one of kagis main selling points) and I blocked geeks for geeks and w3schools, as these are irrelevant for me and I don't want them in my results

[–] pkill@programming.dev 3 points 6 months ago (1 children)

can't you do that on a self-hosted searxng? I know you can do that with YaCY, but YaCY search results kinda suck

[–] jonasw@discuss.tchncs.de 2 points 6 months ago* (last edited 6 months ago)

I don't think that's possible with searxng (but I'm not 100% sure, but I can't seem to find that feature)

I know there are browser extensions which can filter out domains in search results for different search engines like google and duckduckgo.

But the pinning/lowering/raising is a bit trickier to implement as an extension, because what kagi does is basically:

  1. Load 3 pages of search results in the backend
  2. Show a result as the first entry if it matches a rule for pinning
  3. Influence the search ranking algorithm with the lower/raise rules of the user
  4. Filter out blocked domains

It would be possible but not as "streamlined" as Kagi does.

Don't get me wrong, Kagi definitely has its rough edges and the search ranking algorithm is sometimes very unpredictable, but it provides good enough results for me to be worth the 10$ per month for unlimited searches.