4 ms·
Algolia does do search term exclusion. Compare https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=procfs%20linux&sort=byDate&type=comment https://hn
by dang 2y ago
Algolia does do search term exclusion. Compare https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=procfs%20linux&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que... and https://hn.algolia.com/?dateRange=all&page=0&prefix=false&query=procfs%20-linux&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu....
On the second point - HN has an undocumented endpoint https://news.ycombinator.com/replies?id=skeptrune&by=dredmorbius https://news.ycombinator.com/replies?id=skeptrune&by=dredmor... but that doesn't give you search of course.
- tptacek 2y agowhoah
- spasibot 2y agoJust guessed another two undocumented endpoints "deadcomments" and "deadstories", these take you to a special admin login page if you're logged out, or say "Unknown." if logged in: https://news.ycombinator.com/deadcomments https://news.ycombinator.com/deadcomments https://news.ycombinator.com/deadstories https://news.ycombinator.com/deadstories And the endpoint "flagged", which is empty for me: https://news.ycombinator.com/flagged https://news.ycombinator.com/flagged But if you add a username, e.g. "?id=dang", it says "Can't display that." instead: https://news.ycombinator.com/flagged?id=dang https://news.ycombinator.com/flagged?id=dang Interesting to stumble upon these even if they do nothing for a non-admin user!
- tptacek 2y ago`/flagged` is the list of stories you've flagged.
- spasibot 2y agoThat makes sense, thank you.
- dredmorbius 2y ago/flagged, /upvoted, and /favorites, with an "?id=<your_userID>" are how your own flagged, upvoted, and favourited posts/comments are displayed. "&kind=comments" specifically returns flagged comments, otherwise posts. For upvotes and faves, the argument is "&comments=t", for consistency one presumes... Favourites can be displayed for other users, upvoted and flagged cannot (for mere mortals). I suspect downvotes can also be displayed, though I don't know that syntax.
- r721 2y agoI recently found out that "/vouched?id=<your_userID>" also works.
- dredmorbius 2y agoThe replies/by is particularly handy in sorting out why a dead account has been banned, or if there've been previous moderator interactions. That's my own principle use.
- dredmorbius 2y agoSearch term exclusion: TIL! I swear I've tried that w/o luck before. Possibly was confounding that with OR pairing, usually given as "(termA|termB)". I'm pretty sure that doesn't work as expected (and just tested it). It's also annoyingly absent from DDG search, which is out of scope for here. I'd been made aware of the undocumented endpoint but didn't want to spill the beans ;-) It's apparently expensive. OK to run manually, but don't script it.
- niutech 2y agoIs it possible to add the alternative ("OR") operator? https://github.com/algolia/hn-search/issues/169 https://github.com/algolia/hn-search/issues/169