Live data from Hacker News

SearchHut

searchhut.org

91–100 of 161 posts

Re: SearchHut

#91

>> https://searchhut.org/about/domains => 404

Here's the current list: https://paste.sr.ht/~sircmpwn/0cab5e3137c2c2077b5aabf9e2fc8d... It was intended to be larger prior to launch. Here's some other domains I want to index: https://paste.sr.ht/~sircmpwn/84d052f14a9a282698b5e5f7a9d9d9...

I congratulate you for the novel approach, but this is impossible to scale in a way that would make the engine useful.

Re: SearchHut

#92
post #66

Earlier quoted context omitted.

It seems like it uses postgresql's FTS, which will generally drop stop-words so "the", "a", "and" and similar words are dropped. I've been meaning to figure out the best way to deal with this myself, and I'm guessing looking for exact matches first and then running a FTS query could work.

You can write a custom stemming algorithm and load it as an extension library into Postgres, then use that with `CREATE TEXT SEARCH DICTIONARY` to create a custom dictionary. It's not as difficult as it sounds - you can use the default Snowball stemmer as a sample, and tweak it.

It's not just a custom dictionary. Stop words are usually excluded for a reason, you need to understand the nature of the query, and when to exclude what looks like stop words from being pruned. It's not really a job for a snowball stemmer, as you do need to operate over multiple tokens to gather context.

Re: SearchHut

#93

Does Sourcehut offer textual search within a repo's files? GitHub and GitLab offer it, but Codeberg doesn't seem to (and I couldn't find any information about its presence or absence on Sourcehut).

It doesn't appear to be a code search engine. Just a regular search engine focused on code.

Does Sourcegraph index Sourceht projects? It is a proper code search engine and very good.

Re: SearchHut

#94
post #83
post #31

Earlier quoted context omitted.

I just tried searching for "python str" on Google. I expected the top result to be a link to the official Python docs for the `str` type, then ideally some relevant StackOverflow questions highlighting common Python issues with strings, bytes, Unicode etc. Instead, the top result was W3Schools. Then came the Python docs, then 5 pages somewhere between blogspam and poor-quality tutorials. Then a ReadTheDocs page datin…

Afaik Python does not have a str type (I think you meant string?). You could instead search for "python string" to find more information about python strings. Even then the very first result for Python str is actually relevant for me (Python documentation about built in types.

> Afaik Python does not have a str type

It does have it:

  $ python3 -c 'print(type(""))'
  

Re: SearchHut

#95

I'm not a fan of google but you can do exactly what this search engine does by curating your own list of domains to search against. https://programmablesearchengine.google.com

It requires google account, has tracking and isn't open-source. I'd say it is no go

Re: SearchHut

#96
I wonder how the page ranking will work in the end. A quick look at the source doesn't show (me!) any planning for intelligent ranking. The database has a last_index_date and an authoritative field. Could be used fot basic relevance sorting, but nothing exhaustive.

Postgres as backend is maybe not the best choice and there are already many sites that index specific pages and take suggestions. The hard part is getting relevant results when having a large index.

Still thank you for a new web search.

Re: SearchHut

#100
post #98

May I know what are the limits of the API? How many requests per minute / hour are acceptable?

The API limits are not documented yet, like many other things, due to the early launch. For now I'll just say "be good". Don't hit it with a battering ram.
Post reply on HN