Italian Laws Unigram Viewer on the Edge With Cloudflare Pages

<p>I didn&rsquo;t know much about search engines or information retrieval. So, as usual, my journey began with a Google search.</p> <p>That&rsquo;s where I found the well known Apache Lucene. I started digging and learning all about it. I discovered that there are many other optimizations and pre-processes that are essentials for serving a search endpoint, and that there is a project called Solr that is doing this for me.</p> <p>Solr is a search engine built on top of Apache Lucene, and it comes with sane defaults and a handy HTTP API. The first part is indexing and processing the laws, I used&nbsp;<code>pysolr</code>&nbsp;client to loop trough each law and add them to the index. The document format only contains the text (not stored) and the publication date (stored), which is all I need to reconstruct the term usage plot.</p> <p><a href="https://marplex.medium.com/italian-laws-unigram-viewer-on-the-edge-with-cloudflare-pages-ef6c8cbe1630"><strong>Website</strong></a></p>
Tags: Italian Laws