How to filter result by recent date range?

39 views
Skip to first unread message

Quang Vu

unread,
Feb 23, 2014, 7:08:24 PM2/23/14
to hnse...@googlegroups.com
After a few hours try to learn FunctionQuery from their wiki and ThriftDB API and cannot find the solution for what I am doing, I decide to post here hoping that someone can help me. My goal to get the recent highest score items within some range, let say in the past 5 days. I also see the thread from Jason Wang asking for similar filter for day range, but since I don't have specific range, I cannot apply his solution.

I try with:

decode:  http://....filter[queries][]=div(div(ms(NOW,create_ts),3600000),24):[0 TO 7]

I got 500 Internal Server Error, and I think that part that I try to apply the function on the field
div(div(ms(NOW,create_ts),3600000),24)
is causing me error, but I don't know the syntax to fix it. Hope someone can show me the cause and the solution.
Thanks.

Andres Morey

unread,
Feb 23, 2014, 11:23:50 PM2/23/14
to hnse...@googlegroups.com, hnse...@googlegroups.com
Unfortunately this API is shutting down on March 15. Please check out the new official HN search API at http://hn.algolia.com
--
You received this message because you are subscribed to the Google Groups "HNSearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hnsearch+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Quang Vu

unread,
Feb 24, 2014, 1:39:08 AM2/24/14
to hnse...@googlegroups.com
Thank you for this info Andres!
Reply all
Reply to author
Forward
0 new messages