3 ms·
I spend a lot of time trying to find articles I once read on here via Google with... site:news.ycombinator.com some term ...but a many times "some term" is
by mcovalt 6y ago
I spend a lot of time trying to find articles I once read on here via Google with...
site:news.ycombinator.com some term
...but a many times "some term" is not in the title of the HN post, but in the body of the article. I didn't see any other tools that did this for HN.
- cxr 6y agoConsider expanding the scope to index links posted in user comments, too.
- walterbell 6y agoThere's also Algolia, https://hn.algolia.com https://hn.algolia.com
- tomhoward 6y agoIt doesn't index the article contents though; only the story titles and comments, same as Google.
- city41 6y agoIt does seem to have a much larger index though, which for me at least makes it more useful. Hopefully hndex's index will grow.
- 1vuio0pswjnm7 6y agoHow did you come to this conclusion with respect to hndex? Most articles have no comments. Yet one can search on hndex for terms only found in the article, not in the title.
- tomhoward 6y agoI wasn't really saying anything about hndex, apart from that it indexes the contents of external articles submitted to HN, as you said. The correction I was making was about HN Algolia search (which is linked from the search box at the bottom of each HN page), which only indexes content on news.ycombinator.com itself – i.e., article titles, comments and text-only posts like Show/Ask HN – but not the external content in submitted articles.
- owenversteeg 6y agoYes, me too! This is really great, thanks! I'll definitely be using it.
- danielskogly 6y agoThis is really useful! You might want to consider hiding the “More”-button if the current page isn’t filled up, so as to not just have an empty page when clicking it. For some reason I couldn’t find my own blog post[0], even when searching for the embarrassing typo I made in the title - acommodating. [0] https://news.ycombinator.com/item?id=23426951 https://news.ycombinator.com/item?id=23426951
- browsergap 6y agowhat are you using to do the full text search?
- lhoff 6y agoVery nice. Works as expected. I stumbled about two things that could be improved: - Add a search Button for convenient mobile use or if a user copy pasts things into to the search field using the mouse - Add a comment counter on the result page, Since you index every article a lot of them have none or very few comments. Oh and just a warning, depending on the jurisdiction providing the cache could be problematic under copyright laws since its basically a copy of the article.
- run2arun 6y agoFor that specific use case, you can try the intitle keyword site:news.ycombinator.com intitle:"some term"