1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-29 08:40:45 +02:00

update bundle

This commit is contained in:
Thomas Wilkerling
2025-03-26 00:08:29 +01:00
parent b85e3eab37
commit b2db45a47c
47 changed files with 367 additions and 378 deletions

View File

@@ -1,4 +1,4 @@
import { Index } from "flexsearch/esm";
import { Index } from "flexsearch";
// you will need to keep the index configuration
// they will not export, also every change to the

View File

@@ -1,4 +1,4 @@
import { Index } from "flexsearch/esm";
import { Index } from "flexsearch";
import Sqlite from "flexsearch/db/sqlite";
// import Postgres from "flexsearch/db/postgres";
// import MongoDB from "flexsearch/db/mongodb";

View File

@@ -1,4 +1,4 @@
import { Index } from "flexsearch/esm";
import { Index } from "flexsearch";
// create a simple index which can store id-content-pairs
const index = new Index({

View File

@@ -1,4 +1,4 @@
import { Index } from "flexsearch/esm";
import { Index } from "flexsearch";
// create a simple index which can store id-content-pairs
const index = new Index({

View File

@@ -1,4 +1,4 @@
import { Encoder } from "flexsearch/esm";
import { Encoder } from "flexsearch";
import { promises as fs } from "fs";
(async function(){

View File

@@ -1,4 +1,4 @@
import { Worker as WorkerIndex } from "flexsearch/esm";
import { Worker as WorkerIndex } from "flexsearch";
const dirname = import.meta.dirname;
// you will need to keep the index configuration

View File

@@ -1,4 +1,4 @@
import { Encoder } from "flexsearch/esm";
import { Encoder } from "flexsearch";
export default {
tokenize: "forward",

View File

@@ -1,4 +1,4 @@
import { Worker as WorkerIndex } from "flexsearch/esm";
import { Worker as WorkerIndex } from "flexsearch";
const dirname = import.meta.dirname;
(async function(){

View File

@@ -1,4 +1,4 @@
import { Worker as WorkerIndex } from "flexsearch/esm";
import { Worker as WorkerIndex } from "flexsearch";
(async function(){

View File

@@ -1,4 +1,4 @@
import { Index } from "flexsearch/esm";
import { Index } from "flexsearch";
// create a simple index which can store id-content-pairs
const index = new Index({

View File

@@ -1,4 +1,4 @@
import { Document, Charset } from "flexsearch/esm";
import { Document, Charset } from "flexsearch";
import { promises as fs } from "fs";
const dirname = import.meta.dirname;

View File

@@ -1,4 +1,4 @@
import { Document, Charset } from "flexsearch/esm";
import { Document, Charset } from "flexsearch";
import { promises as fs } from "fs";
const dirname = import.meta.dirname;

View File

@@ -1,5 +1,5 @@
import { Encoder, Charset } from "flexsearch/esm";
import EnglishPreset from "flexsearch/esm/lang/en";
import { Encoder, Charset } from "flexsearch";
import EnglishPreset from "flexsearch/lang/en";
import { promises as fs } from "fs";
(async function(){

View File

@@ -1,5 +1,5 @@
import { Encoder, Charset } from "flexsearch/esm";
import EnglishPreset from "flexsearch/esm/lang/en";
import { Encoder, Charset } from "flexsearch";
import EnglishPreset from "flexsearch/lang/en";
import { promises as fs } from "fs";
(async function(){

View File

@@ -1,4 +1,4 @@
import { Document } from "flexsearch/esm";
import { Document } from "flexsearch";
import { promises as fs } from "fs";
const dirname = import.meta.dirname;

View File

@@ -1,5 +1,5 @@
import { Encoder, Charset } from "flexsearch/esm";
import EnglishPreset from "flexsearch/esm/lang/en";
import { Encoder, Charset } from "flexsearch";
import EnglishPreset from "flexsearch/lang/en";
export default {
tokenize: "forward",

View File

@@ -1,5 +1,5 @@
import { Encoder, Charset } from "flexsearch/esm";
import EnglishPreset from "flexsearch/esm/lang/en";
import { Encoder, Charset } from "flexsearch";
import EnglishPreset from "flexsearch/lang/en";
export default {
tokenize: "forward",

View File

@@ -1,4 +1,4 @@
import { Document } from "flexsearch/esm";
import { Document } from "flexsearch";
import { promises as fs } from "fs";
const dirname = import.meta.dirname;

View File

@@ -1,4 +1,4 @@
import { Document } from "flexsearch/esm";
import { Document } from "flexsearch";
import { promises as fs } from "fs";
const dirname = import.meta.dirname;

View File

@@ -1,4 +1,4 @@
import { Document, Charset } from "flexsearch/esm";
import { Document, Charset } from "flexsearch";
import fs from "fs";
const dirname = import.meta.dirname;

View File

@@ -1,5 +1,5 @@
import { Index, Encoder, Charset } from "flexsearch/esm";
import EnglishPreset from "flexsearch/esm/lang/en";
import { Index, Encoder, Charset } from "flexsearch";
import EnglishPreset from "flexsearch/lang/en";
const encoder = new Encoder(
Charset.LatinSimple,