4 ms·
Could HN search special case "HTTP"?
I have a particular interest in http servers at the moment, but any search that includes “http” will return every story that has an http[s] link in the URL.
Could search terms that are network protocols either not return links that start with the network protocol? Or is there a way I’m not seeing of excluding just the protocol portion of the URL from matching (I’d want URLs that included “http” elsewhere in the URL, for instance).
- Tomte 2y agoWhat‘s your problem? Typing http in the search field at the bottom results in https://hn.algolia.com/?q=http https://hn.algolia.com/?q=http All results have http in their titles.
- solardev 2y agoI think the OP is tyring to filter out hits that have HTTP in the URL (which is all of them), so they need a way to exclude the URL field from the search.
- yawpitch 2y agoExactly.
- yawpitch 2y agoYes, but it’s pot luck if the term appears in the title at all… change from Popularity to Date and you’re just looking at every post that has an http/https URL, regardless of title.
- code_Whisperer 2y agoHow about searching for: http%3A
- yawpitch 2y agoNice idea, but same results and also breaks formatting (on iOS Safari, at least).
- solardev 2y agoI think you can use the HN API to restrict the search to only the title field: https://hn.algolia.com/api/v1/search?query=http&restrictSearchableAttributes=title https://hn.algolia.com/api/v1/search?query=http&restrictSear...
- yawpitch 2y agoAhh, good to know as a workaround.
- deleted 2y ago[deleted]
- naveen99 2y agoTry this: https://hn.garglet.com/form/textSearch?input6=http+protocol+http+server&input7=&page_size=50 https://hn.garglet.com/form/textSearch?input6=http+protocol+... And this: https://hn.garglet.com/similar/stories/6012525 https://hn.garglet.com/similar/stories/6012525