Skip to content

Commit

Permalink
index forward for search
Browse files Browse the repository at this point in the history
  • Loading branch information
beefoo committed Nov 8, 2023
1 parent 24f83a8 commit 0d85f7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/search/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class App {

indexTranscriptData(documents) {
this.loadingOn('Data parsed; indexing transcript data...');
const index = new FlexSearch.Index();
const index = new FlexSearch.Index({
tokenize: 'forward',
});
// console.log(documents);
documents.forEach((document) => {
index.add(document.id, document.Transcription);
Expand Down

0 comments on commit 0d85f7e

Please sign in to comment.