News for hackers. Stuff that matters.
Re:Ask HN: Are there any purely keyword-based search engines... by ChuckMcM on Sunday March 25, 2018 @11:18AM (#16672525)
No :-). For what its worth, Google never worked that way either, it used Page Rank initially to sort results by social importance. I would guess that the last keyword based engine of any merit was AltaVista. AV had the issue of returning all pages with your words but it had no notion of sorting them (at least initially, you can read their patent as well)

These days its fairly easy to code up an n-gram index and host it on a moderate server. If you have a corpus of documents you can see how well it works. The simplest corpus is to just down load all of Wikipedia. Last time I checked it fit on a 2 TB disk drive.

You could also use the Common Crawl database and index it as you would like, or talk to the Internet Archive project for some sort of collaborative project. However I will warn you that of the people who have done this experiment (and it was a new hire task at both Blekko and Google where I worked) folks quickly discovered it wasn't very useful.

Re:Ask HN: Are there any purely keyword-based search engines... by giancarlostoro on Sunday March 25, 2018 @12:04PM (#16672766)
To be fair wikipedia compressed without images is pretty small. A couple tens of gigs no more than 80. You can download it to your phone and there are apps to view it all. Not sure how larger it is decompressed but 2 TB sounds like overkill. But yeah wikipedia would be a good way to test it.

Also did you mean every single wikipedia site or just the English one? I'm thinking just the English one's sufficient.

Re:Ask HN: Are there any purely keyword-based search engines... by tomcooks on Sunday March 25, 2018 @12:19PM (#16672855)
I know what you mean with "sufficient",but English pages are often lacking informations on a lot of subjects related to countries outside the anglosphere.

I still don't understand why wikipedia articles aren't translated according to a common script, at least where there are featured translations (marked a star)

Re:Ask HN: Are there any purely keyword-based search engines... by zeckalpha on Tuesday March 27, 2018 @01:02AM (#16685399)
Feel free to make that happen.
Re:Ask HN: Are there any purely keyword-based search engines... by WalterGR on Sunday March 25, 2018 @12:44PM (#16673003)
Also, did he mean the entire revision history of Wikipedia, or just the most recent versions of pages?
Re:Ask HN: Are there any purely keyword-based search engines... by giancarlostoro on Sunday March 25, 2018 @12:52PM (#16673051)
That would definitely explain 2TB haha but yeah, if you pull the recent English version without images it's like ... I wanna say 30GB off the top of my head.

As for anyone curious:

https://dumps.wikimedia.org/backup-index.html

Re:Ask HN: Are there any purely keyword-based search engines... by 3131s on Sunday March 25, 2018 @01:47PM (#16673356)
The most recent was 13.9GB compressed and ~65GB uncompressed. The version without images, talk pages, and revision history is 'enwiki-20180320-pages-articles.xml.bz2' here:

https://dumps.wikimedia.org/enwiki/20180320/

The article text contains Wikipedia markup which is a bit difficult to remove but not impossible, there are some existing projects for doing that. DBPedia would have the raw text, but it's not nearly as current.

Re:Ask HN: Are there any purely keyword-based search engines... by lacksconfidence on Sunday March 25, 2018 @04:14PM (#16674305)
You can get the raw text with wikitext and whatnot removed from the search dumps made every week (also has various other metadata)

http://dumps.wikimedia.your.org/other/cirrussearch/

These are structured with a JSON string for each doc roughly like https://en.m.wikipedia.org/wiki/Foobar?action=cirrusdump

Re:Ask HN: Are there any purely keyword-based search engines... by burfog on Monday March 26, 2018 @12:35AM (#16676633)
Google did work that way. Page rank was used for ranking, which is fine. Page rank did not override the search query, which is what it now does.

Our complaint is that the results we get from our queries simply do not match the queries we are making.

Re:Ask HN: Are there any purely keyword-based search engines... by bogomipz on Sunday March 25, 2018 @12:03PM (#16672756)
Since you appear to have a background that includes search and Google I thought I would ask you or anyone else a tangential question - with more than 30 Trillion sites[1] on the internet how is the crawling ever completed before it needs to be re-indexed again?

I'm imagining that "the frontier" a crawler needs to crawl is actually a distributed queue and that crawlers are massively parallelized. I'm also imagining the frontier is bucketed by its indexing frequency i.e daily, weekly monthly etc. Is that close? Might you have any resources on how this is architected at large search providers?

[1] https://venturebeat.com/2013/03/01/how-google-searches-30-tr...

Re:Ask HN: Are there any purely keyword-based search engines... by jedberg on Sunday March 25, 2018 @12:16PM (#16672832)
The crawl is never done. It's constantly crawling. And you're right, it's just a queue of websites that's been found, and when a crawling machine has an available slot, it crawls the next site (obviously that's simplified).

Certain pages get crawled more often than others. As a website owner, you can tell Google how often your content changes, which they will use as a clue for how often to recrawl your site.

If you're really big (like for example Reddit), you actually lose that control in Google dashboard -- they fully control the crawl rate. From experience, I can tell you that they are crawling large sites, like Reddit, continuously. Even 7 years ago, when I last worked there, they were crawling Reddit so much that we had to set up a separate server infrastructure just to respond to Google's requests, because their access patterns were so different from every other user.

Re:Ask HN: Are there any purely keyword-based search engines... by owenversteeg on Sunday March 25, 2018 @07:23PM (#16675256)
That's fascinating. Is there any way to contact Google to get them to change their crawl patterns? Or a more efficient way to directly send them the site updates as they happen? I imagine a "direct line" to Google would save resources both on Google's side and yours, but I've never ran a site big enough for that to be a problem so I wouldn't know.
Re:Ask HN: Are there any purely keyword-based search engines... by himlion on Monday March 26, 2018 @08:18AM (#16678253)
I think that would lend itself to abuse.
Re:Ask HN: Are there any purely keyword-based search engines... by ChuckMcM on Friday March 30, 2018 @01:52PM (#16718277)

   > "[H]ow is the crawling ever completed before
   > it needs to be re-indexed again?"
Crawls essentially never finish and indexes are never 'done'. If you're building a modern search engine you crawl and index continuously and you use the ranking signals you have developed to steer the crawler to promising new pages.

The reality is that there are roughly between 5 to 15 billion pages that are nominally "not spam" and not duplicates. Literally 99.9% of the internet is crap. So finding web pages as long since switched from 'crawling every page that is accessible from the web' to 'only surfacing those pages that have something of value on them.' That was the fundamental thesis for the founding of Blekko and it is still true today.

That said, a cluster of ~100,000 threads and a couple of petabytes of storage attached with sufficient bandwidth to keep the threads busy can deal with what is out there. If you can create a hash space for strings that is sufficiently uniform you evenly spread the load of crawling every URI you discover across the cluster.

As you crawl you take new pages you discover and apply your ranking algorithm to them where they will score a value between 0 (never index) and 1 (always index).

At which point you can dial the 'rankable' value from 0 (index everything) to 1 (rank only must rank pages) to set the size of the index you can tolerate.

Re:Ask HN: Are there any purely keyword-based search engines... by bluecat22 on Sunday March 25, 2018 @06:42PM (#16675075)
Can you elaborate why setting up a simple search engine based on common crawl was not useful?
Re:Ask HN: Are there any purely keyword-based search engines... by rpedela on Sunday March 25, 2018 @10:36PM (#16676181)
Basic keyword search is great at recall but precision (top 10) gets worse as the number of documents increases. Given the size of the web, basic keyword search tends to perform poorly in terms of relevance. Common Crawl is large enough to see this problem.

I think what OP and several people in this thread actually want is Google search minus synonyms and the ability to specify advanced syntax like AND and NEAR queries. I believe that would go a long way to satisfying someone who says they just want "keyword search".

Re:Ask HN: Are there any purely keyword-based search engines... by ChuckMcM on Friday March 30, 2018 @01:54PM (#16718294)
You are exactly right, and specific keyword search allows you to weaponize a search engine so Google doesn't let you do it. (they have been victimized in the past for letting people specify things that could pull out social security numbers, for example.