Switch to flexsearch-es

This commit is contained in:
Alex Gleason
2023-09-15 19:10:59 -05:00
parent 50736e025f
commit fd2bad74e9
3 changed files with 9 additions and 8 deletions

View File

@ -1,11 +1,12 @@
import Index from 'flexsearch/dist/module';
import Index from '@akryum/flexsearch-es';
import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
import data from './data';
import type { Emoji } from './index';
const index = new Index({
// @ts-ignore Wrong default export.
const index: Index.Index = new Index({
tokenize: 'full',
optimize: true,
context: true,