Hacker News new | past | comments | ask | show | jobs | submit login

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



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


&filter[fields][___domain]=nytimes.com&filter[queries][]=-username:ausername


Great! Thanks.


Argh. And also, is there any way to query ThriftDB for HN date ranges?


You 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]


Sweet! That's perfect. Thank you.




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

Search: