Comment on Hacker News SearchparentComments−andres15yThe `_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.−ars15yWell 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.−milkshakes15ycould you please index the submission ids? i can think of a few reasons this would be useful−lt15yExactly.How do I find this comment through the API? How do I find its replies?−andres15yWould you mind emailing me with your ideas? andres@octopart.com
Comments
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.
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.
could you please index the submission ids? i can think of a few reasons this would be useful
Exactly.
How do I find this comment through the API? How do I find its replies?
Would you mind emailing me with your ideas? andres@octopart.com