News for hackers. Stuff that matters.
Re:Hacker News Search by andres on Saturday June 04, 2011 @01:32PM (#2619933)
The `_id` attribute for each item is its submission id plus a signature. ThriftDB references objects by their unique `_id` attributes.

The `id` attribute on the other hand is an item's submission id. It's not indexed though so you can't do lookup by id.

Re:Hacker News Search by ars on Sunday June 05, 2011 @03:17AM (#2621563)
Well that explains why I failed at fetching an item by id, and I tried a whole bunch of different ways. You should really mention somewhere that the "id" referenced is an internal id, and not the HN id.

I would like to lookup items by HN id.

Re:Hacker News Search by milkshakes on Saturday June 04, 2011 @03:02PM (#2620192)
could you please index the submission ids? i can think of a few reasons this would be useful
Re:Hacker News Search by lt on Saturday June 04, 2011 @03:31PM (#2620256)
Exactly.

How do I find this comment through the API? How do I find its replies?

Re:Hacker News Search by andres on Saturday June 04, 2011 @03:25PM (#2620243)
Would you mind emailing me with your ideas? [email protected]