News for hackers. Stuff that matters.
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Thursday September 16, 2021 @08:51AM (#28551057)
Yeah so this is my project. It's very much a work in progress, but occasionally I think it works remarkably well for something I cobbled together alone out of consumer hardware and home-made code :-)
Re:A search engine that favors text-heavy sites and punishes... by crocodiletears on Thursday September 16, 2021 @01:04PM (#28554298)
It's very rare that I see a project on HN I can see myself using. This is one. Like others have said, the results can be a little rough. But they're rough in a way I think is much more manageable than the idiosynchrosies of more 'clever' search engines.
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Thursday September 16, 2021 @06:47PM (#28558784)
I think you need to approach it more like grep than google. It's a forgotten art, dealing with this type of dumb search engine.

Like if you search for "How do I make a steak", you aren't going to get very good results. But a better query is "Steak Recipe", as that is at least a conceivable H1-tag.

Re:A search engine that favors text-heavy sites and punishes... by crocodiletears on Thursday September 16, 2021 @07:13PM (#28558998)
This is exactly how I prefer to use my search engines.
Re:A search engine that favors text-heavy sites and punishes... by quaintdev on Friday September 17, 2021 @08:54AM (#28564884)
I searched like this all my life and always got expected results.

But just a week ago I found out that these "how", "what" questions give better and faster results on Google.

Re:A search engine that favors text-heavy sites and punishes... by LeftHandPath on Friday September 17, 2021 @05:06PM (#28570896)
That switch happened some years ago. I've been unlearning and relearning how to use google for what feels like at least three or four years now.

The main pain-point, though, is that a lot of long-tail searches you could've used to find different results in years past, now seem to funnel you to the same set of results based on your apparent intent. At least, it has felt that way -- I'm not entirely sure how the modern google algorithm works.

Re:A search engine that favors text-heavy sites and punishes... by eitland on Monday September 20, 2021 @02:17AM (#28590804)
I realized this a few years ago when I observed my wife find things faster on Google than me.

I appreciate that it is easier for newcomers but I still hate it personally after years and especially that they cannot even avoid meddling with my queries even when I try to accept the new system and use the verbatim option.

Re:A search engine that favors text-heavy sites and punishes... by corobo on Sunday September 19, 2021 @07:43AM (#28583558)
Try your old Google Fu skills on DuckDuckGo (or Bing I guess). I've found it to have good results anyway
Re:A search engine that favors text-heavy sites and punishes... by tomxor on Sunday September 19, 2021 @07:57AM (#28583627)
> I think you need to approach it more like grep than google. It's a forgotten art

A search engine that accepted regex as the search parameter would be amazing.

I actually used this method as a field filter for a bunch of simple internal tools to search for info. Originally people were asking for individual search capabilities, but I didn't want it to become a giant project with me as the implementor of everyone's unique search capability feature request - so I just gave them regex, encoded inputs into the URL query string so they can save searches - gave em a bunch of examples to get going and now people are slowly learning regex and coming up with their own "new features" :P

But this made sense because it's a relatively small amount of data, so small that it's searched in the front end which is why it's more of a filter... I don't think pure regex would scale when used as a query on a massive DB, it would need some kind of hierachy still to only bother parsing a subset of relevant text... unless there is some clever functional regex caching algorithm that can be used.

Re:A search engine that favors text-heavy sites and punishes... by AQXt on Friday September 17, 2021 @07:54AM (#28564366)
So, you are re-implementing Altavista, Lycos and other old search engines.

They used the naive approach: you searched for "steak", and they would bring the pages which included the word "steak".

The problem is that people could fool these engines by adding a long sequence like "steak, steak, steak, steak, steak, steak" to their site -- to pretend that they were the most authoritative page about steaks.

Google's big innovation was to count the referrers -- how many pages used the word "steak" to link to that particular page.

The rest is history.

Re:A search engine that favors text-heavy sites and punishes... by frogpelt on Friday September 17, 2021 @11:01AM (#28566250)
Effective Google search is also history.

I understand they are trying to maximize ad revenue and search does work very well for people who are looking for products or services.

But it no longer works well for finding information that is even slightly obscure.

Re:A search engine that favors text-heavy sites and punishes... by wolverine876 on Friday September 17, 2021 @02:19PM (#28569020)
> The problem is that people could fool these engines by adding a long sequence like "steak, steak, steak, steak, steak, steak" to their site -- to pretend that they were the most authoritative page about steaks.

I don't see a lot of people investing in SEO to boost their Marginalia results.

Re:A search engine that favors text-heavy sites and punishes... by eitland on Monday September 20, 2021 @02:23AM (#28590828)
> Google's big innovation was to count the referrers -- how many pages used the word "steak" to link to that particular page.

Then people fooled Google into showing the White House as top result when searching for "a miserable failure".

At the moment marginalia's approach of sorting pages into quality buckets based on lack of JS seems to be working extremely well, but of course it will be gamed if it gets popular.

However, I'd rather want SEO-crafting to consider itself with minimizing JS, rather than spamming links into every comment field on every blog across the globe ;-)

Re:A search engine that favors text-heavy sites and punishes... by asah on Thursday September 16, 2021 @09:31AM (#28551546)
Love it, kudos! This is great for developers and others who Just Need Answers and not shopping or entertainment.

If you're looking for feedback, both from a UI design and utility standpoint, you might consider "inlining" results from selected sites, e.g. Wikipedia, stacked change, etc. Having worked on search for a long time, inlining (onebox etc) is a big reason users choose Google, and that channelers fail to get traction. If you're Serious(tm), dog into the publisher structure formats and format those, create a test suite, etc.

A word of caution: if this takes off, as a business it's vulnerable to Google shifting its algorithms slightly to identify the segment of users+queries who prefer these results and give the same results to those queries.

Hope this helps!

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Thursday September 16, 2021 @09:42AM (#28551665)
If Google starts showing interesting text-heavy links instead of vapid listicles and storefronts, I have accomplished everything I ever could dream of.
Re:A search engine that favors text-heavy sites and punishes... by MaysonL on Thursday September 16, 2021 @09:35PM (#28560130)
Google Info - for when you're looking for information, not shopping advice or lists!
Re:A search engine that favors text-heavy sites and punishes... by wolverine876 on Friday September 17, 2021 @02:20PM (#28569034)
Maybe you're joking, but this is a good idea for search engine. Better: Credible info.
Re:A search engine that favors text-heavy sites and punishes... by addandsubtract on Friday September 17, 2021 @04:52AM (#28562879)
Google info? Can you give me a sample query of what you mean?
Re:A search engine that favors text-heavy sites and punishes... by kkiinnpptt on Saturday September 18, 2021 @02:45AM (#28574244)
It was a joke. The joke being that Google should launch at new product called Google Info, that would actually give you information when you search.
Re:A search engine that favors text-heavy sites and punishes... by palijer on Thursday September 16, 2021 @01:01PM (#28554270)
Haha, reminds me exactly of this.

https://xkcd.com/810/

Re:A search engine that favors text-heavy sites and punishes... by niutech on Monday September 20, 2021 @11:12AM (#28594672)
You can check the Web Vitals score of Google SERP-s using Core SERP Vitals (https://chrome.google.com/webstore/detail/core-serp-vitals/o...) and filter out the worst results.
Re:A search engine that favors text-heavy sites and punishes... by 0xbadcafebee on Thursday September 16, 2021 @10:23AM (#28552195)
Thank you for doing this important work.
Re:A search engine that favors text-heavy sites and punishes... by aaron5 on Thursday September 16, 2021 @07:18PM (#28559038)
haha, great answer! thanks for your work on this :)
Re:A search engine that favors text-heavy sites and punishes... by ad404b8a372f2b9 on Thursday September 16, 2021 @09:31AM (#28551534)
Very cool project! How many websites do you have in your index? And how did you go about building it?

I've been working on an engine for personal websites, currently trying to build a classifier to extract them from commoncrawl, if you have any general tips on that kind of project they'd be very welcome.

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Sunday September 19, 2021 @05:17PM (#28588007)
About 21 million, and I'm crawling myself.

Classification is really hard. I'm struggling with it myself, as a lot of like privacy policies and change logs turns out to share the shape of a page of text.

I'm thinking of experimenting with ML classifiers, as I do have reasonably good ways of extracting custom datasets. Finding change logs and privacy policies is easy, excluding them is hard.

Re:A search engine that favors text-heavy sites and punishes... by ad404b8a372f2b9 on Tuesday September 21, 2021 @06:10AM (#28603540)
If you're open to sharing your index I could make a classifier for you, I do this for a living. It's more of the indexing and search engine part which have been a problem for me. That's why I'm working from commoncrawls.
Re:A search engine that favors text-heavy sites and punishes... by bityard on Thursday September 16, 2021 @11:41AM (#28553227)
This is awesome. I've been looking for a long time for a search engine that basically takes everything Google does and does the opposite. Thank you for doing this, I will definitely be bookmarking it.

Is there a way to suggest or add sites? I went looking for woodgears.ca and only got one result. I also think my personal blog would be a good candidate for being indexed here but I couldn't find any results for it.

Re:A search engine that favors text-heavy sites and punishes... by Wronnay on Sunday September 19, 2021 @07:42AM (#28583550)
I would also love to add some sites which I were missing...

Unfortunately this doesn't seem to be a feature which new search engines are focusing on - Brave Search also misses that feature...

Re:A search engine that favors text-heavy sites and punishes... by edbaskerville on Thursday September 16, 2021 @09:33PM (#28560119)
This has amazing potential. I'd encourage you to form a non-profit, turn this into something that can last as an organization without becoming what you're trying to avoid becoming. This is a good enough start that I bet you could raise a sizeable startup fund very soon from a combination of crowdfunding and foundation grants—I bet the Sloan Foundation would love this!
Re:A search engine that favors text-heavy sites and punishes... by davegauer on Thursday September 16, 2021 @04:53PM (#28557428)
This is absolutely wonderful. I am LOVING the results I'm getting back from it: the sort of content-rich sites that have become nigh unreachable using traditional search engines. Thank you for building this!
Re:A search engine that favors text-heavy sites and punishes... by BugsJustFindMe on Thursday September 16, 2021 @09:30AM (#28551527)
I love this, and I love (many of) the results so far! What I can't find on the site is detail about what "too many modern web design features" means. Is it just penalizing sites with tons of JavaScript?
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Thursday September 16, 2021 @09:47AM (#28551727)
Javascript tags are penalized the hardest, but it also takes into consideration density of text per HTML. There's also some adjustments based on text length, which words occur in the page, etc.
Re:A search engine that favors text-heavy sites and punishes... by santamex on Thursday September 16, 2021 @09:12AM (#28551293)
Which software do you use to index the sites?
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Thursday September 16, 2021 @09:25AM (#28551455)
I wrote it myself from scratch. I have some metadata in mariadb, but the index is bespoke.

A design sketch of the index is that it uses one file with sorted URL IDs, one with IDs of N-grams (i.e. words and word-pairs) referring to ranges in the URL file; as well as a dictionary for relating words to word-IDs; that's a GNU Trove hash map I modified to use memory map data instead of direct allocated arrays.

So when you search for two words, it translates them into IDs using the special hash map, goes to the words file and finds the least common of the words; starts with that.

Then it goes to the words file and looks up the URL range of the first word.

Then it goes to the words file and looks up the URL range of the second word.

Then it goes through the less common word's range and does a binary search for each of those in the range of the more common word.

Then it grabs the first N results, and translates them into URLs (through mariadb); and that's your search result.

I'm skipping over a few steps, but that's the very crudest of outlines.

Re:A search engine that favors text-heavy sites and punishes... by q3k on Thursday September 16, 2021 @10:46AM (#28552491)
Good stuff. I've also been toying with doing some homegrown search engine indexing (as an exercise in scalable systems), and this is a fantastic result and great inspiration.

Definitely want to see more people doing that kind of low-level work instead of falling back to either 'use elasticsearch' or 'you can't, you're not google'.

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Thursday September 16, 2021 @11:39AM (#28553192)
Well just crunching the numbers should indicate what is possible and what isn't.

For the moment I have just south of 20 million URLs indexed.

1 x 20 million bytes = 20 Mb.

10 x 20 million bytes = 200 Mb.

100 x 20 million bytes = 2 Gb.

1,000 x 20 million bytes = 20 Gb.

10,000 x 20 million bytes = 200 Gb.

100,000 x 20 million bytes = 2 Tb.

1,000,000 x 20 million bytes = 20 Tb.

This is still within what consumer hardware can deal with. It's getting expensive, but you don't need a datacenter to store 20 Tb worth of data.

How many bytes do you need, per document, for an index? Do you need 1 Mb of data to store index information about a page that, in terms of text alone, is perhaps 10 Kb?

Re:A search engine that favors text-heavy sites and punishes... by freediver on Saturday September 18, 2021 @07:55PM (#28580444)
What crawler are you using and what kind of crawling speeds are you achieving?

How do you rank the results (is it based on content only) or you have external factors too?

What is your personal preferred search option of the 7 and why?

Thanks for making something unique and sorry that despite all the hype this got, you got only $39/month on Patreon. It is telling in a way.

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Sunday September 19, 2021 @09:07AM (#28584037)
> What crawler are you using and what kind of crawling speeds are you achieving?

Custom crawler, and I seem to get around 100 documents per second at best, maybe closer to 50 on average. Depends a bit on how many crawl-worthy websites it finds, and there is definitely diminishing returns as it goes deeper.

>How do you rank the results (is it based on content only) or you have external factors too?

I rank based on a pretty large number of factors, incoming links weighted by the "textiness" of the source domain, and similarity to the query.

> What is your personal preferred search option of the 7 and why?

I honestly use Google for a lot. My search engine isn't meant as a replacement, but a complement.

> Thanks for making something unique and sorry that despite all the hype this got, you got only $39/month on Patreon. It is telling in a way.

Are you kidding? I think the Patreon is a resounding success! I'm still a bit stunned. I've gotten more support and praise, not just in terms of money but also emails and comments here than I could have ever dreamed possible.

And this is just the start, too. I only recently got the search engine working this well. I have no doubt it can get much better. The fact that I have 11 people with me on that journey, even if they "just" pay my power bill, that's amazing.

I'm honestly a bit at a loss for words.

Re:A search engine that favors text-heavy sites and punishes... by freediver on Sunday September 19, 2021 @11:06AM (#28584885)
You have a great attitude!

And I am not kidding. I think for something that got so much attention on HN, where realistically this kind of product can only exist for now, the 'conversion' rate was very low. Billion dollar companies were made of HN threads with lot less engagement. Makes me wonder do we really want a search engine like this or we just like the idea of it?

And what are the barriers to use something like this? You say yourself that you are using Google most of the time. Is jumping to check results on this engine going to be too much friction for most uses?

Can something like this exist in isolation? What kind of value would it need to provide for users to remember using it en-masse as an additional/primary vertical search like they do for Amazon?

Just thinking out-loud as I am also interested in the space (through http://teclis.com).

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Sunday September 19, 2021 @01:20PM (#28586065)
I think in part it may just be because I'm not trying to found a start-up, and I'm not trying to get rich quick. If I were, I would have dealt with this very differently. My integrity and the integrity of this project is far more important than my bank balance. Not everyone feels that way, and I can respect that, but I do.

Ultimately I think running something like this for profit would create really unhealthy incentives to make my search engine worse. Any value it brings, right now, it brings because it isn't trying to cater to every taste and every use case.

I also hate the constant "don't forget to slap the like and subscribe buttons"-shout outs of modern social media, even though I'm aware they it is extremely efficient. If I went down that route, I would become part of the problem I'm trying to help cure. I do feel the sirens' call though, it's intoxicating getting this sort of praise and attention.

I want this to be a long-term project, not a some overnight cinderella story.

In the end, my search engine is never going to replace google. It isn't trying to, it's trying to complement it. It's barely able now, but hopefully I can make it much better in the months and years to come.

Re:A search engine that favors text-heavy sites and punishes... by fuzzfactor on Sunday September 19, 2021 @01:53PM (#28586368)
I think it's good not to have to depend on financial compensation for every single thing in your life, if you can be comfortable or do well otherwise.

This allows quite a bit of its own kind of freedom even if maximum financial opportunity is not fully exploited. Perhaps even because you are not grasping for every dollar on the table at all times.

You can do things without having to know if they will pay off, and if it turns out big anyway you can make money as a byproduct of what you do rather than having pure financial pursuit be the root of every goal.

Re:A search engine that favors text-heavy sites and punishes... by freediver on Sunday September 19, 2021 @01:43PM (#28586281)
I agree with everything you say. The 'subscribe and like buttons' would not help your conversion with HN readers, on the contrary. Trying to run this for profit also would not help your conversion with this audience.

So given your setup is already ideal for 'conversions' for this population (low profile, high integrity, no BS) I was simply genuinely surprised that only 11 people converted given enormous visibility/interest this thread had. Hope that makes sense.

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Sunday September 19, 2021 @03:34PM (#28587185)
I think it simply takes time to build trust. The threshold to sending someone money is high. I probably wouldn't send someone money based on a proof of concept and lofty ambitions alone.

I'd absolutely consider sending someone money if they kept bringing something of value into my life. If I want more people to join the patreon, I'll just have to earn their trust and support.

Re:A search engine that favors text-heavy sites and punishes... by fuzzfactor on Sunday September 19, 2021 @01:26PM (#28586125)
The day Google first appeared on the full internet it was excellent of course because it had no ads.

Plus another excellent feature was you would get the same search results no matter who or where you were for quite some period of calendar time.

If something new did appear it was likely to be one of the new sites that was popping up all the time and it was likely to be as worthwhile as its established associates on the front page.

You shouldn't need to crawl nearly as fast if you can compensate by treading more suitably where those have gone before.

Re:A search engine that favors text-heavy sites and punishes... by bullen on Sunday September 19, 2021 @06:17AM (#28583136)
Interesting, in my database (http://root.rupy.se) I have one file per word that contains the ids (long) of the nodes (URLs), so to search many words together I have to go through the first file and one by one see if I find matches in the second.

How does the range binary search work, does it just prune out the overlaps, how efficient is it and how much data do you have in there for say "hello" and "world" f.ex?

Re:A search engine that favors text-heavy sites and punishes... by Aeolun on Thursday September 16, 2021 @07:22PM (#28559072)
I’m not sure how you go from word to url range? Range implies contiguous, but how can you make that happen for a bunch of words without keeping track of a list of urls for each word (or URL ids, the idea is the same)?
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Friday September 17, 2021 @03:20AM (#28562269)
The trick is that the list of URLs for each word already is in the URLs file.

The URLs in a range are sorted. A sorted list (or list-range) forms an implicit set-like data structure, where you can do binary searches to test for existence.

Consider a words file with two words, "hello" and "world", corresponding to the ranges (0,3), (3,6). The URLs file contains URLs 1, 5, 7, 2, 5, 8.

The first range corresponds to the URLs 1, 5, 7; and the second 2, 5, 8.

If you search for hello world, it will first pick a range, the range for "hello", let's say (1,5,7); and then do binary searches in the second range -- the range corresponding to "world" -- (2,5,8) to find the overlap.

This seems like it would be very slow, but since you can trivially find the size of the ranges, it's possible to always do them in an order of increasing range-sizes. 10 x log(100000) is a lot smaller than 100000 x log(10)

Re:A search engine that favors text-heavy sites and punishes... by bullen on Sunday September 19, 2021 @06:24AM (#28583166)
Hm, ok I understand more but how do you perform the "binary search", just loop over the URL ids?

Funny I also selected "hello" and "world" above! Xo

My system is also written in Java btw!

Here are example results of my word search:

http://root.rupy.se/node/data/word/four

http://root.rupy.se/node/data/word/only

etc.

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Sunday September 19, 2021 @10:42AM (#28584703)
I'll get back to your email in a while, I've got a ton of messages I'm working through.

But yeah, in short pseudocode:

  for url in range-for-"hello":
    if binary-search (range-for-"world", url):
      yield url
I do use streams, but that is the bare essence of it.
Re:A search engine that favors text-heavy sites and punishes... by soheil on Tuesday September 21, 2021 @01:44AM (#28602340)
So every time you insert a new URL for a word you have to update the range for every other single word since the URL file will be shifted?
Re:A search engine that favors text-heavy sites and punishes... by soheil on Tuesday September 21, 2021 @01:00PM (#28607092)
Are the n-grams always at most n=2 bigrams?
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Tuesday September 21, 2021 @03:36PM (#28608954)
No, I actually count the n-grams as distinct words (up to 4-grams). The main limiter is for that is space, so I only extract "canned" n-grams from some tags.

I would first search for the bigram hello_world, that's an O(1) array lookup; as then documents merely containing the words hello and world (usually not a good search result), that's the algorithm I'm describing in the parent comment.

Re:A search engine that favors text-heavy sites and punishes... by soheil on Tuesday September 21, 2021 @04:09PM (#28609325)
Makes sense. Every time you insert a new URL for a word you have to update the ranges for every other word since the URL file will be shifted?
Re:A search engine that favors text-heavy sites and punishes... by rvnx on Thursday September 16, 2021 @09:36AM (#28551594)
It's a great project!
Re:A search engine that favors text-heavy sites and punishes... by agencies on Saturday September 18, 2021 @01:45PM (#28577932)
I continue to want a communal set of 50-100 million urls and data that are "good" (i.e. for any value of good and more complete than common crawl) that are accessible enough to be easy to work with that can be used to experiment with different web search tech. There are enough separate problems to tackle in web search that breaking it down would maybe move the needle. We have lots of kaggle competitions about ranking, but using closed data. What other types of kaggle projects would help web search?

What can we do to foster a sustainable bazaar of projects to make it easier to build web search engines?

Re:A search engine that favors text-heavy sites and punishes... by habibur on Thursday September 16, 2021 @01:39PM (#28554698)
How are you doing the crawling without getting blocking? -- the hardest part.
Re:A search engine that favors text-heavy sites and punishes... by judge2020 on Thursday September 16, 2021 @01:58PM (#28554927)
Not OP but crawling is easy if you don't try scanning 5+ pages a second - almost all rate limiting/heuristic based 'keep server costs low' engines, including Cloudflare, don't care if you request every page, but will take action if you do something like burst every page and take up just as many server resources as a hundred concurrent users.

Now, that is assuming you aren't on some VPS provider. If you're going to crawl, you'll have the best chance when you use your own IPs on your own ASN, with DNS and reverse DNS set up correctly. This makes it so the IP reputation systems can detect you as a crawler but not one that hammers every site it visits.

Also, I imagine that, for a search engine like this, it doesn't expect content to change much anyways - so it can take its time crawling every site only once every month or two, instead of the multiple times a week (or day) search engines like Google have to for the constantly-updated content being churned out.

Re:A search engine that favors text-heavy sites and punishes... by androceium on Thursday September 16, 2021 @11:19AM (#28552925)
Pretty neat!!!

You may already be aware of this, but the page doesn't seem to be formatted correctly on mobile. The content shows in a single thin column in the middle.

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Thursday September 16, 2021 @11:22AM (#28552972)
Hmm, which OS? I only have a single Android phone so I've only fixed the CSS for that.
Re:A search engine that favors text-heavy sites and punishes... by androceium on Thursday September 16, 2021 @03:53PM (#28556600)
I was seeing it on Android w/ Firefox. Seems like it's fixed now though. :)
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Friday September 17, 2021 @05:59AM (#28563329)
Curious, I haven't touched the stylesheets.
Re:A search engine that favors text-heavy sites and punishes... by ant6n on Thursday September 16, 2021 @12:49PM (#28554115)
For example Firefox on Android.
Re:A search engine that favors text-heavy sites and punishes... by khimaros on Friday September 17, 2021 @10:46AM (#28566072)
Fennec F-Droid on Android 11 has some rendering issues.
Re:A search engine that favors text-heavy sites and punishes... by drpixie on Saturday September 18, 2021 @04:12AM (#28574545)
Really like it, and love that you've done this yourself.

I'd prefer if it does just one thing and does that really well. Don't waste your time on calculator and conversion functions, or pseudo-natural language queries. There are plenty of good calculator & converter tools and websites, but we all need a really good search engine. I think you'd be better looking at handling synonyms and plurals.

Thanks.

Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Saturday September 18, 2021 @03:34PM (#28578625)
I've mostly added these converters and frills because I'm trying to eat my own dogfood, and google is deeply engrained as my go-to source for unit conversions and back-of-envelope calculations.

Don't worry, this stuff is easy, and doesn't even remotely take away from the work on the harder problems.

Re:A search engine that favors text-heavy sites and punishes... by soheil on Thursday September 16, 2021 @06:59PM (#28558891)
Awesome project! How are you able to keep the site running after HN kiss of death? What is your stack, elastic search or something simper? How did you crawl so many websites for a project this size? Did you use any APIs like duck duck go or data from other search engines? Are you still incorporating something like PageRank to ensure good results are prioritized or is it just the text-based-ness factor?
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Friday September 17, 2021 @06:11AM (#28563416)
> How are you able to keep the site running after HN kiss of death?

I originally targeted a Raspberry Pi4-cluster. It was only able to deal with about 200k pages at that stage, but it did shape the design in a way that makes very thrifty use of the available hardware.

My day job is also developing this sort of highly performance java applications, I guess it helps.

> What is your stack, elastic search or something simper?

It's a custom index engine I built for this. I do use mariadb for some ancillary data and to support the crawler, but it's only doing trivial queries.

> How did you crawl so many websites for a project this size?

It's not that hard. Like it seems like it would be, and there certainly is an insane number of edge cases, but if you just keep tinkering you can easily crawl dozens of pages per second even on modest hardware (of course distributed across different domains).

> Did you use any APIs like duck duck go or data from other search engines?

Nope, it's all me.

> Are you still incorporating something like PageRank to ensure good results are prioritized or is it just the text-based-ness factor?

I'm using a somewhat convoluted algorithm that takes into consideration the text-based-ness of the page, but also how many incoming links the domain has, but it's a weighted value that factors in the text-based-ness of the origin domains.

It would be interesting to try a page rank-style approach, but my thinking is that because it's the algorithm, it's also the algorithm everyone is trying to game.

Re:A search engine that favors text-heavy sites and punishes... by peterburkimsher on Friday September 17, 2021 @04:25AM (#28562700)
Thank you so much for creating such a useful search engine!

Is there any way that you can get an HTTP certificate?

I use an old iPhone 4S, and most of the modern web is inaccessible due to TLS. Hacker News and mbasic.facebook are two of the last sites I can use.

Usually text-based sites are more accessible, so this could be really useful to help me continue using my antique devices!

Re:A search engine that favors text-heavy sites and punishes... by agumonkey on Thursday September 16, 2021 @01:10PM (#28554390)
is there a json endpoint ? I'd love to make an emacs bridge :)
Re:A search engine that favors text-heavy sites and punishes... by maddyboo on Thursday September 16, 2021 @08:23PM (#28559586)
Seconded, I’d like to incorporate it into a project of mine.
Re:A search engine that favors text-heavy sites and punishes... by zizee on Thursday September 16, 2021 @10:30PM (#28560568)
Love the idea. A little feedback: layout needs tweaking for mobile. FWIW: I'm on mobile Firefox for Android.
Re:A search engine that favors text-heavy sites and punishes... by scrollaway on Thursday September 16, 2021 @06:28PM (#28558601)
I searched Warcraft and got a gold selling/ level boosting site. Some things never change :)
Re:A search engine that favors text-heavy sites and punishes... by powerchord on Saturday September 18, 2021 @02:06PM (#28578085)
This is really cool! A spacer between the links would help my old eyes; I keep getting lost in which link goes with which description. :-)
Re:A search engine that favors text-heavy sites and punishes... by axelroze on Thursday September 16, 2021 @09:13AM (#28551308)
Hi,

Interesting idea. Definitely see an overlap with eReader markets and looking at text only contents.

How does it work?

It ignores pages on which it detects frameworks for ui and ads or any javascript code at all?

Re:A search engine that favors text-heavy sites and punishes... by karlzt on Friday September 17, 2021 @10:26PM (#28573058)
I can't see the letters in the disturbing white search box, I'm on duckduckgo, brave, monocles, jquarks, smartcookieweb on Android.
Re:A search engine that favors text-heavy sites and punishes... by artembugara on Thursday September 16, 2021 @09:57AM (#28551854)
Nice, what are you using to crawl the web?
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Thursday September 16, 2021 @10:05AM (#28551953)
It's pretty much all bespoke.

I use external libraries for parsing HTML (JSoup) and robots.txt; but that's about it.

Re:A search engine that favors text-heavy sites and punishes... by soheil on Thursday September 16, 2021 @11:26PM (#28560865)
What was the starting site you fed to the crawler to follow the links from to build the index?
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Friday September 17, 2021 @07:19AM (#28564020)
Just my (swedish) personal website. The first iteration of the search engine was probably mainly seeded by these links:

https://www.marginalia.nu/00-l%C3%A4nkar/

But I've since expanded my websites, so now I think these play a decent role in later iterations, although they are virtually all of them pages I've found eating my own dogfood:

https://memex.marginalia.nu/links/fragments-old-web.gmi

https://memex.marginalia.nu/links/bookmarks.gmi

Re:A search engine that favors text-heavy sites and punishes... by niutech on Saturday September 18, 2021 @06:14PM (#28579834)
Nice project, but have you heard of FrogFind? it also presents lightweight search results.
Re:A search engine that favors text-heavy sites and punishes... by bluefox on Thursday September 16, 2021 @09:30AM (#28551523)
This is a very cool project! Thank you.
Re:A search engine that favors text-heavy sites and punishes... by aoms on Saturday September 18, 2021 @05:29AM (#28574847)
What's the tech stack?
Re:A search engine that favors text-heavy sites and punishes... by marginalia_nu on Saturday September 18, 2021 @03:37PM (#28578649)
It's custom java code, for the most part. I'm using mariadb for some ancillary information, but the index and the crawler and everything is written from scratch.

It's hosted on my consumer-equipment server (Ryzen 3900x, 128Gb ram, Optane 900p+a few IronWolf drives), bare bones on Debian.

Re:A search engine that favors text-heavy sites and punishes... by noduerme on Thursday September 16, 2021 @05:07PM (#28557616)
I love this idea, and admire the work you put into it. I'm a fan of long reads and historical non-fiction, and Google's results are truly garbage.

I have a criticism that I think may pertain to the ranking methodology. I searched for "discovery of Australia". Among the top results were:

* A site claiming that the biblical flood was caused by Earth colliding with a comet (with several other pages from that site also making the top search results with other wild claims, e.g. that the Egyptians discovered Arizona);

* Another site claiming the first inhabitants of Australia were a lost tribe of Israel;

* A third site claiming that Australia was discovered and founded by members of a secret society of Rosicrucians who had infiltrated the Dutch East India Company and planned to build an Australian utopia...

These were all pages heavy with HTML4 tags and virtually devoid of Javascript, the kinds of pages you'd frequently see in the late 1990s from people who had built their own static websites in a text editor, or exported HTML from MS Word. At that time, there were millions of those sites with people paying for their own unique domain names, and so the proportion of them that were home to wild-eyed conspiracy theories was relatively small. What I think has happened is that kooks continued to keep these sites up - to the point where it's almost a visual trope now to see a red <h1> tag in Times New Roman and think, uh oh, I've stumbled on an "ancient aliens" site. Whereas scholars and journals offering higher quality information have moved to more modern platforms that rely more heavily on modern browsers - with or without their own domain names. So as a result what seemed to surface here were the fragments of the old web that remain live - possibly because people living in cabins in Montana forget to cancel their web hosting, or because the nature of old-school conspiracy theorists is to just keep packing their old sites with walls of text surrounded by <p> tags.

Arguably, this seems to rank the way Google's engine used to, since it couldn't run JS and they wanted to punish sites that used code to change markup at render time. At least, when I used to have to do onsite SEO work, it was always about simple tag hierarchies.

I wonder whether there isn't some better metric of validity and information quality than what markup is used. Some of the sites that surfaced further down could be considered interesting and valuable resources. I think not punishing simple wall-of-text content is a good thing. But to punish more complicated layouts may have the perverse effect of downranking higher-quality sources of information - i.e. people and organizations who can afford to build a decent website, or who care to migrate to a modern blogging platform.

Re:A search engine that favors text-heavy sites and punishes... by _dain_ on Friday September 17, 2021 @10:42AM (#28566029)
those three pages sound pretty interesting, I don't see this as a problem
Re:A search engine that favors text-heavy sites and punishes... by GaylordTuring on Saturday September 18, 2021 @07:08AM (#28575222)
I don’t want my search engine to somehow try to judge the believability of the results. I’d like to be the judge of that myself.
Re:A search engine that favors text-heavy sites and punishes... by ColinHayhurst on Thursday September 16, 2021 @10:45AM (#28552480)
Great work. Working on an alternative search engine too. Take a look at my profile.
Re:A search engine that favors text-heavy sites and punishes... by blondin on Thursday September 16, 2021 @01:59PM (#28554947)
fantastic project, thank you!