Building an invert index with Python sets.

Almost everybody has written about the Python sets and a few ones about the frozensets. Even thought the literature is still too much pragmatic and it lacks of real examples to figure out daily problems, something that a Python coder practices almost unwittingly. Yesterday I had an Eureka moment trying to find the right problem to show how frozensets can be used. This post shows how to build a full text search engine through an invert index using a few lines of Python and plenty of memory RAM.

Read More