{"by":"dangoodmanUT","descendants":13,"id":44551359,"kids":[44583623,44587432,44588670,44613234,44582289],"score":66,"text":"Hey HN! I got nerd-sniped by Bloom Filters this weekend, specifically for searching datasets with high &quot;cardinality&quot; (number of unique items).<p>They&#x27;re an _amazing_ data structure that, at a fixed size, tracks potential set membership. That means unlike normal b-tree indexes, they don&#x27;t grow with the number of unique items in the dataset.<p>This makes them great for &quot;needle in a haystack&quot; search (logs, document) as implementations like VictoriaMetrics and Bing&#x27;s BitFunnel show.\nI&#x27;ve used them in the past, but they&#x27;ve never been center-stage in my projects.<p>I wanted high cardinality keyword search for ANOTHER project... and, well, down the yak-shaving rabbit hole we go!<p>BloomSearch brings this into an extensible Go package:<p>- Very memory efficient via bloom filters and streaming row scans<p>- DataStore and MetaStore interfaces for any backend (can be same or separate)<p>- Hierarchical pruning via partitions, minmax indexes, and of course bloom filters<p>- Search by field, token, or field:token with complex combinators<p>- Disaggregated storage and compute for unbound ingest and query throughput<p>And of course, you know I had to make a custom file format ^-^ (FILE_FORMAT.MD)<p>BloomSearch is optimized for massive concurrency, arbitrary cardinality and dataset size, and super low memory usage.\nThere&#x27;s still a lot on the table too in terms of size and performance optimizations, but I&#x27;m already super pleased with it. With distributed query processing I&#x27;m targeting &gt;100B rows&#x2F;s over large datasets.<p>I&#x27;m also excited to replace our big logging bill ~$0.003&#x2F;GB for log storage with infinite retention and guilt-free querying :P","time":1752422539,"title":"Show HN: BloomSearch – Keyword search with hierarchical Bloom filters","type":"story","url":"https://github.com/danthegoodman1/bloomsearch"}