How to use the flexsearch function in flexsearch

To help you get started, we’ve selected a few flexsearch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dauxio / daux.io / src / js / search / index.js View on Github external
}).then(json => {
                this.searchIndex = new FlexSearch({
                    doc: {
                        id: "url",
                        field: ["title", "text", "tags"]
                    }
                });

                let pages = json.pages;

                // Only keep the pages related to the current language
                if (window.searchLanguage) {
                    const pagePrefix = `${window.searchLanguage}/`;
                    pages = pages.filter(
                        item => item.url.indexOf(pagePrefix) === 0
                    );
                }
github autoai-org / AID / dashboard / src / services / search.js View on Github external
constructor () {
    self.index = new FlexSearch({
      // default values:
      encode: 'balance',
      tokenize: 'forward',
      async: false,
      worker: false,
      cache: false
    })
  }

flexsearch

Next-Generation full text search library with zero dependencies.

Apache-2.0
Latest version published 10 months ago

Package Health Score

66 / 100
Full package analysis