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

Algolia does do search term exclusion. Compare https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que... and 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=dredmor... but that doesn't give you search of course.



Search 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.


Oh yes, OR clauses would be great.

Maybe Trieve can give us propositional logic over search terms!


Can do!


Is it possible to add the alternative ("OR") operator? https://github.com/algolia/hn-search/issues/169


whoah


Just 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/deadstories

And the endpoint "flagged", which is empty for me:

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

Interesting to stumble upon these even if they do nothing for a non-admin user!


`/flagged` is the list of stories you've flagged.


That makes sense, thank you.


/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.


I recently found out that "/vouched?id=<your_userID>" also works.


The 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.




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

Search: