Pacote
    Preparing search index...

    Module @pacote/bloom-search

    @pacote/bloom-search

    version minified minified + gzip

    Document search using Bloom filters.

    This module was created to support basic full-text search on static sites where a backend-supported search feature isn't possible, and loading a complete index on the client is too expensive.

    Bloom filters are used because they trade result accuracy for space efficiency. With them, false positive matches are possible, but false negatives are not. That is to say, its responses are either a certain miss or a possible match.

    They allow building a simple document search index that is smaller than inverted indices at the cost of occasionally returning matches for words that are not present in any document. This error rate can be adjusted to improve search quality.

    Due to the limitations inherent in Bloom filters, only full, individual words can be matched against indexed documents while searching. The absence of partial matching can be remedied through the use of a custom stemmer function, but more "advanced" features like suffix matching cannot be performed at all.

    See how several client-side search engines compare against Bloom Search.

    yarn add @pacote/bloom-search
    

    MIT © Luís Rodrigues.

    Classes

    BloomSearch

    Type Aliases

    Index
    IndexedDocument
    Options
    PreprocessFunction
    StemmerFunction
    StopwordsFunction
    TokenizerFunction