How to use the lunr.fr function in lunr

To help you get started, we’ve selected a few lunr 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 veteransaffairscanada / vac-benefits-directory / store.js View on Github external
frIdx = lunr(function() {
        this.ref("id");
        this.use(lunr.fr);
        this.field("vacNameFr");
        this.field("oneLineDescriptionFr");
        this.field("benefitExamplesFr");
        benefits.forEach(function(doc) {
          this.add(doc);
        }, this);
      });