Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In app search feature vs Algolia search #176

Open
Lcchy opened this issue Jan 10, 2024 · 4 comments
Open

In app search feature vs Algolia search #176

Lcchy opened this issue Jan 10, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Lcchy
Copy link

Lcchy commented Jan 10, 2024

Hi there, first of all, thanks a lot for the nice app!

While comparing the search engine of the app with the official Hacker News search, I found that it was giving less accurate results (e.g. on "Gpt4-Turbo"). Additionally, it does not seem to be possible to search with "All Time" as a timespan.

I therefore wanted to ask, if Glider is using the official Hacker News search? And if not if there's a specific reason for it.

Thanks!

@Mosc
Copy link
Owner

Mosc commented Jan 10, 2024

I'm assuming that when you mention the "official Hacker News search", you're referring to the Hacker News search powered by Algolia at https://hn.algolia.com/. That would indeed be the same source that Glider is using for its search functionality.

I cannot reproduce the mentioned lower accuracy. I'm seeing basically the same results between this app and the web page. It would be helpful if you could provide some side-by-side results that show a quality discrepancy. The main difference between this app and the web page (with its default settings) is that Glider disables typo-tolerance because I found that that can result in some curious matches.

It is possible to search without any time span, but it might not be immediately obvious if you haven't been exposed to the chip UI element much before. You may deselect the currently selected date filter to enter the default "all time" mode.

@Lcchy
Copy link
Author

Lcchy commented Jan 11, 2024

Yes sorry for not being clear, I also corrected the issue title which was misleading.

Here are 2 screenshots comparing the search results:

screenshot_2024-Jan-11th_13h11m52s

signal-2024-01-11-131223

Maybe it is just a different ordering of results that is being used?

Edit: I did deselect all time buttons for the phone screenshot.

@Lcchy Lcchy changed the title Search engine optimization In app search feature vs Algolia search Jan 11, 2024
@Mosc
Copy link
Owner

Mosc commented Jan 12, 2024

I see. Initially you referenced "Gpt4-Turbo", which shows very similar results on Glider and Algolia, but you're right that "Gpt4 Turbo", without the dash, results in a lot more matches on the latter.

It does turn out that the typo-tolerance setting in Algolia is what makes up the difference. In this case the "correct" search term would be "GPT-4 Turbo". As mentioned I've had some weird results with typo-tolerance enabled, but there's an argument to be made that skipping the dash should be tolerated here. Let me meditate on it.

@Mosc Mosc added the enhancement New feature or request label Jan 12, 2024
@Lcchy
Copy link
Author

Lcchy commented Jan 18, 2024

Ah yes I see. I wasn't sure in the beginning about what triggered the difference so I played around with it.
What you said makes sense, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants