The world's librarians at least gave it a good effort. Do you still remember all those card catalogs at the library?
Yes, I remember them but also observe that we’ve moved on from those trays of cards in narrow drawers systems (and good riddance!).
Those cards are no replacement for literal grep, of course. They were a search across a tiny summary of the contents, albeit a fairly structured one (which is helpful for some searches).
Not just that, I remember learning all of the different systems and being told how invaluable it was for research.