News for hackers. Stuff that matters.
Re:Algolia raises $110M for its search-as-a-service by faceshapeapp on Wednesday October 16, 2019 @06:10PM (#21276509)
Congrats to the team!

Although, am I the only one who finds that searching HN through Google gives better results than searching it through the Algolia powered HN search?

For example, search "ml" in both, Algolia results are years old and don't seem that relevant, whereas Google picks up more recent threads.

Re:Algolia raises $110M for its search-as-a-service by j0e1 on Wednesday October 16, 2019 @06:14PM (#21276551)
I have found their search interface for HN (https://hn.algolia.com) useful. They have a drop-down for selecting how you'd want to sort the results. From how I see it Google is doing more blackbox magic whereas Algolia is being a faithful/predictable search engine.
Re:Algolia raises $110M for its search-as-a-service by Mougatine on Thursday October 17, 2019 @05:31AM (#21280270)
Probably because Algolia isn't using yet any machine learning, but more old-school (yet still very good) tries-based search.

And it's probably why also Algolia shines as search engine for a website vs searching the internet like Google. The former has a small scope (looking for videogames on twich, polo on lacoste) while the latter must be personalized for the user (the snake python vs the programming language python).

Re:Algolia raises $110M for its search-as-a-service by GordonS on Wednesday October 16, 2019 @06:24PM (#21276653)
Sample size of 1, but yes, I also tend to have better results using `query site:news.ycombinator.com` than using the built-in Algolia search.
Re:Algolia raises $110M for its search-as-a-service by sdan on Wednesday October 16, 2019 @07:05PM (#21277018)
I do this sometimes as well when Angolia isn't giving me the results I'm looking for.
Re:Algolia raises $110M for its search-as-a-service by dhruvkar on Wednesday October 16, 2019 @06:18PM (#21276589)
Not really. The sorting is based on popularity by default, which you can change. To compare:

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

https://www.google.com/search?q=news.ycombinator.com%3A+ml&o...

Re:Algolia raises $110M for its search-as-a-service by sniperjzp on Wednesday October 16, 2019 @07:29PM (#21277227)
It feels ironic, I searched "Algolia" from both, today's news is ranked as #7 in Algolia powered HN. From Algolia: https://imgur.com/a/atRMnwj From Google: https://imgur.com/a/d3EKdUp

Some people says it's popularity based, but if I change it to date based, it's broken? https://imgur.com/a/HGzL6fO

Re:Algolia raises $110M for its search-as-a-service by faceshapeapp on Wednesday October 16, 2019 @07:31PM (#21277249)
Simply sorting by date doesn't really seem to be that useful either.

For example, the poster below showed the following link for the "ml" query: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que....

If you look at the results, the first 2 results only matched part of the poster's username and many of the top results here are empty threads which are not that useful since HN is mostly for discussions.

To be clear, I'm not saying it's all bad, just pointing out that there are low hanging fruits which can improve results quite a bit.

Also, Algolia seems misspelled in your query which is why it fails when reordering by date: https://imgur.com/a/pO9fBWr, it works otherwise. Although, it says the date is 1 day old when it's just 2 hours old.

Re:Algolia raises $110M for its search-as-a-service by sniperjzp on Wednesday October 16, 2019 @08:05PM (#21277557)
️ oops, a typo in the query, but why they have query correction for popularity based, not date based?
Re:Algolia raises $110M for its search-as-a-service by redox_ on Thursday October 17, 2019 @03:53PM (#21285759)
Yes, when sorting by date it's currently configured to disable typo-tolerance. This is to avoid having an old (but approximative, like with typos) result BEFORE the correct ones.
Re:Algolia raises $110M for its search-as-a-service by unityByFreedom on Wednesday October 16, 2019 @09:08PM (#21277987)
Sort by date works fine. Your last search has a typo `agolia`.
Re:Algolia raises $110M for its search-as-a-service by manigandham on Wednesday October 16, 2019 @06:14PM (#21276549)
You can change the filters and ranking in the HN search page. I find it faster and easier than Google for comment content.
Re:Algolia raises $110M for its search-as-a-service by Redsquare on Wednesday October 16, 2019 @06:47PM (#21276851)
It's only as good as the HN team have configured the ranking and other algolia settings. Be nice for them to expose these.
Re:Algolia raises $110M for its search-as-a-service by atombender on Wednesday October 16, 2019 @07:10PM (#21277070)
Pretty sure HN's search is implemented by Algolia themselves. It's served from algolia.com.
Re:Algolia raises $110M for its search-as-a-service by redox_ on Thursday October 17, 2019 @03:54PM (#21285767)
Correct, and the source code is here: https://github.com/algolia/hn-search
Re:Algolia raises $110M for its search-as-a-service by Redsquare on Thursday October 17, 2019 @03:27AM (#21279719)
You cant self host algolia
Re:Algolia raises $110M for its search-as-a-service by atombender on Thursday October 17, 2019 @01:00PM (#21284026)
No, that wasn't my point. You can't host the service, but you can self-host a site that uses it behind the scenes.
Re:Algolia raises $110M for its search-as-a-service by newscracker on Thursday October 17, 2019 @01:12AM (#21279100)
I came to this discussion just to say something similar. Algolia doesn’t seem to be great for HN, and off late I see it not loading search results (maybe something to do with my network, browser and the site) or being quite slow compared to say, Google Search.
Re:Algolia raises $110M for its search-as-a-service by cjblomqvist on Thursday October 17, 2019 @03:10AM (#21279624)
Another data point: Have encountered the same problem.
Re:Algolia raises $110M for its search-as-a-service by soneca on Wednesday October 16, 2019 @07:32PM (#21277258)
I prefer much more Algolia than Google for searching things in HN.

The customizable stuff are very helpful -- search by user, by type, order stories by popularity or date, etc.

Re:Algolia raises $110M for its search-as-a-service by lettergram on Wednesday October 16, 2019 @07:11PM (#21277080)
It all depends on what you’re trying to find when you search. Google knows your background, Algolia doesn’t.

I too built a search engine:

https://demo.insideropinion.com/meta_profiles?utf8=%E2%9C%93...

I find it works 100x better for me, when I weight results by my expertise. Basically, returning results based on what I already am familiar with.

Re:Algolia raises $110M for its search-as-a-service by faceshapeapp on Wednesday October 16, 2019 @07:18PM (#21277137)
The results aren't necessarily better because of the Google knowledge of you, because they are pretty good results even in Private browsing without being logged in.

It just seems to me that HN search does a simple keyword matching and reordering based on points without any ranking (please someone correct if I'm wrong).

So freshness doesn't seem to have any value, but the reality is that, at least in tech, very few content is evergreen. Also, when you try to reorder by date for example, you'll end up with a lot of empty threads which again are not that useful. I'm not sure if there's a way of eliminating empty threads from search results.

Re:Algolia raises $110M for its search-as-a-service by plnech on Thursday October 17, 2019 @04:12AM (#21279918)
FWIW, Private browsing doesn't prevent Google to tailor results to what it can guess about you: https://spreadprivacy.com/google-filter-bubble-study/
Re:Algolia raises $110M for its search-as-a-service by lettergram on Wednesday October 16, 2019 @07:20PM (#21277144)
They rank by popularity by default (up votes), but I agree generally their API doesn’t seem to do ranking.
Re:Algolia raises $110M for its search-as-a-service by lolive on Thursday October 17, 2019 @05:06AM (#21280149)
You compare a generic solution vs a highly tuned mission critical search engine.