Search is the one feature that usually forces a static site to grow a backend. This is an attempt to avoid that: build an inverted index at deploy time, compress it aggressively, and query it in the browser.
Trade-offs
It works well up to a few thousand documents. Past that the index outgrows what is reasonable to download and you should be reaching for a real search service instead. Knowing where that line sits is most of the value.