4 ms·
Looks like items marked [dead] in HN will show up as zombie search results -- i.e., they get returned in the search results for the items collection but the dis
by thaumaturgy 15y ago
Looks like items marked [dead] in HN will show up as zombie search results -- i.e., they get returned in the search results for the items collection but the discussion field is null.
For example: filter[fields][type]=comment&filter[fields][username]=pg
...the second result there has a null discussion field. Getting the submission title &etc. would be nice.
- andres 15y agoThe 'discussion' attribute contains info about the discussion that the comment belongs to. In this case the parent discussion is [dead] so the value of 'discussion' is null. Unfortunately, we don't have access to submission titles for [dead] submissions.
- thaumaturgy 15y agoIs there a way to exclude values from search results in the ThriftDB API? i.e., say I want to, [filter][domain]=nytimes.com&[filter][username]!=ausername ...is there a way to do that? I tried the "exclude" operator after [username] and get an "internal server error" every time.
- andres 15y ago&filter[fields][domain]=nytimes.com&filter[queries][]=-username:ausername
- thaumaturgy 15y agoGreat! Thanks.
- thaumaturgy 15y agoArgh. And also, is there any way to query ThriftDB for HN date ranges?
- andres 15y agoYou can use strings to represent relative times: &filter[fields][create_ts]=[NOW-5HOURS%20TO%20NOW] or exact timestamps: &filter[fields][create_ts]=[2011-06-01T05:00:00.00Z%20TO%202011-06-02T07:00:00.00Z] or both: &filter[fields][create_ts]=[2011-06-01T05:00:00.00Z%20TO%20NOW]
- thaumaturgy 15y agoSweet! That's perfect. Thank you.