import lunr from 'lunr';

export default lunr(function index() {
  this.field('name', { boost: 100 });
  this.field('location', { boost: 10 });
  this.field('website');
  this.ref('key');
});

import elasticlunr from 'elasticlunr';

elasticlunr.clearStopWords();

export const index = elasticlunr(function index() {
  this.addField('name');
  this.addField('location');
  this.addField('website');
  this.setRef('key');
});

export const booster = {
  fields: {
    name: { boost: 3 },
    location: { boost: 2 },
    website: { boost: 1 },
  },
  expand: true,
};

Update index from lunr to elasticlunr
Update index from lunr to elasticlunr

