<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sai shiva Pacha</title>
    <description>The latest articles on DEV Community by Sai shiva Pacha (@figes).</description>
    <link>https://dev.to/figes</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4106564%2F1edb2abe-d5e8-4a6e-8433-b6c143e44c14.jpg</url>
      <title>DEV Community: Sai shiva Pacha</title>
      <link>https://dev.to/figes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/figes"/>
    <language>en</language>
    <item>
      <title>I joined a Zero-Dependency Hackathon. So I couldn't install Lucene.</title>
      <dc:creator>Sai shiva Pacha</dc:creator>
      <pubDate>Wed, 02 Sep 2026 16:50:52 +0000</pubDate>
      <link>https://dev.to/figes/i-joined-a-zero-dependency-hackathon-so-i-couldnt-install-lucene-1761</link>
      <guid>https://dev.to/figes/i-joined-a-zero-dependency-hackathon-so-i-couldnt-install-lucene-1761</guid>
      <description>&lt;p&gt;That one constraint completely changed how I built my project.&lt;/p&gt;

&lt;p&gt;For the hackathon, I built JSearch, an embedded search engine written entirely with the Java standard library.&lt;/p&gt;

&lt;p&gt;No Lucene.&lt;br&gt;
No Elasticsearch.&lt;br&gt;
No external parser.&lt;br&gt;
No database.&lt;/p&gt;

&lt;p&gt;Zero external dependencies.&lt;/p&gt;

&lt;p&gt;Normally, building search functionality would start with a simple question:&lt;/p&gt;

&lt;p&gt;Which library should I use?&lt;/p&gt;

&lt;p&gt;This time, that question wasn't available.&lt;/p&gt;

&lt;p&gt;Instead, every feature started with:&lt;/p&gt;

&lt;p&gt;How does this actually work underneath?&lt;/p&gt;

&lt;p&gt;I initially thought a search engine would be relatively straightforward:&lt;/p&gt;

&lt;p&gt;Read documents → tokenize words → build an inverted index → search.&lt;/p&gt;

&lt;p&gt;Then the real problems started showing up.&lt;/p&gt;

&lt;p&gt;I wanted phrase search.&lt;/p&gt;

&lt;p&gt;"spring boot"&lt;/p&gt;

&lt;p&gt;That meant knowing more than which documents contained a word. I had to store word positions.&lt;/p&gt;

&lt;p&gt;I wanted Boolean queries.&lt;/p&gt;

&lt;p&gt;java AND (spring OR redis)&lt;/p&gt;

&lt;p&gt;That meant building a query tokenizer and parser, handling operators, precedence, and parentheses.&lt;/p&gt;

&lt;p&gt;Then came persistence.&lt;/p&gt;

&lt;p&gt;An in-memory index disappears when the program stops. Without using a database or serialization library, I had to design how the index would be stored, loaded, and safely updated.&lt;/p&gt;

&lt;p&gt;That led to things like persistent index storage, temporary writes, and snapshots.&lt;/p&gt;

&lt;p&gt;By the end, JSearch included:&lt;/p&gt;

&lt;p&gt;• Tokenization and normalization&lt;br&gt;
• Inverted indexes&lt;br&gt;
• Positional postings&lt;br&gt;
• Boolean search&lt;br&gt;
• Phrase search&lt;br&gt;
• Query parsing&lt;br&gt;
• Persistent storage&lt;br&gt;
• Snapshot-based updates&lt;br&gt;
• A CLI for indexing and searching&lt;/p&gt;

&lt;p&gt;All built from scratch.&lt;/p&gt;

&lt;p&gt;The biggest lesson from this zero-dependency hackathon wasn't that dependencies are bad.&lt;/p&gt;

&lt;p&gt;Quite the opposite.&lt;/p&gt;

&lt;p&gt;It made me appreciate them more.&lt;/p&gt;

&lt;p&gt;Libraries like Lucene represent years of engineering compressed behind a simple API.&lt;/p&gt;

&lt;p&gt;When you can't install them, you start discovering all the problems they quietly solve for you.&lt;/p&gt;

&lt;p&gt;The zero-dependency constraint forced me to stop thinking:&lt;/p&gt;

&lt;p&gt;"What can I import?"&lt;/p&gt;

&lt;p&gt;and start thinking:&lt;/p&gt;

&lt;p&gt;"What would I need to build?"&lt;/p&gt;

&lt;p&gt;That was probably the most valuable part of building JSearch.&lt;/p&gt;

&lt;p&gt;🔗 GitHub: &lt;a href="https://github.com/Saishiva3000/Jsearch---embedded-search-engine" rel="noopener noreferrer"&gt;https://github.com/Saishiva3000/Jsearch---embedded-search-engine&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hackathon</category>
      <category>java</category>
      <category>programming</category>
      <category>softwaredevelopment</category>
    </item>
  </channel>
</rss>
