News for hackers. Stuff that matters.
Re:HNSearch Feature Requests by joshka on Monday June 06, 2011 @07:51AM (#2624372)
Please don't break the spacebar key acting as page down. The search text box takes all the key presses regardless of focus. I find this annoying in a 'breaks expectations' kind of way.
Re:HNSearch Feature Requests by andres on Monday June 06, 2011 @05:38PM (#2626816)
fixed
Re:HNSearch Feature Requests by joshka on Tuesday June 07, 2011 @08:00AM (#2628744)
thanks!
Re:HNSearch Feature Requests by mtw on Monday June 06, 2011 @03:14PM (#2626010)
I'd like a RSS for search result (want to subscribe to a topic and get a notification whenever it's mentionned here)
Re:HNSearch Feature Requests by AnupSavvy on Monday June 06, 2011 @03:57PM (#2626285)
If its Solr or Lucene running underneath then you could use phonetic analyzer to get expected results if the spelling is not correct. I got results with'Steve Jobs'but when I tried 'Steve Jbs' I got no results. I would say getting close results is better than no results.
Re:HNSearch Feature Requests by ZackOfAllTrades on Tuesday June 07, 2011 @09:14PM (#2631647)
If there are only a few options for a variable, could you have them be expressed as part of the object returned by http://api.thriftdb.com/api.hnsearch.com/items?pretty_print=... Example: Type. Although it is a string, it isn't really a string field. It is a binary choice between two preset strings (comment or submission).

It would make using the schema for things much easier.

Re:HNSearch Feature Requests by jflatow on Sunday June 05, 2011 @07:04PM (#2623063)
I'm not sure why, but I've noticed that sometimes the points field is null, even though it shouldn't be. See for example the second result here:

http://api.thriftdb.com/api.hnsearch.com/items/_search?q=sky...

Re:HNSearch Feature Requests by andres on Sunday June 05, 2011 @07:08PM (#2623072)
I think points is null because that item is < 5 days old. The API should only return points for items > 5 days old.
Re:HNSearch Feature Requests by jflatow on Tuesday June 07, 2011 @11:04AM (#2629391)
why this restriction?
Re:HNSearch Feature Requests by thaumaturgy on Monday June 06, 2011 @05:35AM (#2624176)
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.

Re:HNSearch Feature Requests by andres on Monday June 06, 2011 @10:27PM (#2627661)
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.
Re:HNSearch Feature Requests by thaumaturgy on Tuesday June 14, 2011 @03:49AM (#2652149)
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.
Re:HNSearch Feature Requests by andres on Tuesday June 14, 2011 @10:31AM (#2653077)
&filter[fields][domain]=nytimes.com&filter[queries][]=-username:ausername
Re:HNSearch Feature Requests by thaumaturgy on Tuesday June 14, 2011 @10:51AM (#2653202)
Great! Thanks.
Re:HNSearch Feature Requests by thaumaturgy on Tuesday June 14, 2011 @04:27AM (#2652241)
Argh. And also, is there any way to query ThriftDB for HN date ranges?
Re:HNSearch Feature Requests by andres on Tuesday June 14, 2011 @10:36AM (#2653112)
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]

Re:HNSearch Feature Requests by thaumaturgy on Tuesday June 14, 2011 @10:50AM (#2653199)
Sweet! That's perfect. Thank you.
Re:HNSearch Feature Requests by pestaa on Tuesday June 07, 2011 @06:44PM (#2631238)
I'm not sure US users have noticed, but I can't use the service from Europe, Hungary. It just keeps connecting to the api, tested with latest Chrome and FF.
Re:HNSearch Feature Requests by andres on Monday June 13, 2011 @11:59AM (#2649498)
Can you access ThriftDB (http://www.thriftdb.com)?
Re:HNSearch Feature Requests by tlvince on Saturday June 11, 2011 @04:22AM (#2643469)
It's minor but sticking to conventional operators would be helpful. For example, I find myself typing "intitle:" rather than "title:" out of habit.
Re:HNSearch Feature Requests by andres on Monday June 13, 2011 @12:00PM (#2649502)
I just added support for the "intitle:" operator.
Re:HNSearch Feature Requests by jflatow on Monday June 06, 2011 @02:59PM (#2625915)
It would be really great to have the ability to sort by hotness (i.e. get the top K hottest results (for a given search or not)).
Re:HNSearch Feature Requests by andres on Monday June 06, 2011 @05:57PM (#2626885)
the default relevance algorithm uses hotness to sort results
Re:HNSearch Feature Requests by zscally on Tuesday June 07, 2011 @10:17AM (#2629189)
it would be nice to see the next "start" point based off your limit / total hits this would make implementing pagination simple!
Re:HNSearch Feature Requests by RDDavies on Friday June 10, 2011 @09:39AM (#2640786)
Search only titles, then order by points/date.
Re:HNSearch Feature Requests by andres on Monday June 13, 2011 @11:59AM (#2649492)
You can use the "title:" operator to search in titles.
Re:HNSearch Feature Requests by joe_bleau on Wednesday June 08, 2011 @11:34AM (#2633536)
Work with Opera?
Re:HNSearch Feature Requests by andres on Monday June 13, 2011 @11:23AM (#2649322)
Are you using 11.00? Other users have had problems accessing javascript-heavy sites with 11.00:

http://superuser.com/questions/234110/websites-not-working-w...