Skip to content

Commit

Permalink
Access FlexSearch static methods via bundled export (static class met…
Browse files Browse the repository at this point in the history
…hods of FlexSearch)
  • Loading branch information
schnerring committed Aug 28, 2024
1 parent eb9f50c commit 156961d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions assets/js/flexsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
* A JavaScript file for flexsearch.
*/

// import * as FlexSearch from 'flexsearch';
import Index from 'flexsearch';
import FlexSearch from 'flexsearch';

(function () {

'use strict';

// const index = new FlexSearch.Document({
const index = new Index.Document({
const index = FlexSearch.Document({
tokenize: 'forward',
document: {
id: 'id',
Expand Down

0 comments on commit 156961d

Please sign in to comment.