1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-10-02 08:06:42 +02:00

fix imports

This commit is contained in:
Thomas Wilkerling
2025-03-12 15:07:16 +01:00
parent 59e95a2951
commit 4fe11882ca
53 changed files with 1918 additions and 1843 deletions

View File

@@ -37,7 +37,7 @@ export default function Index(options, _register) {
/** @type ContextOptions */
const context = options.context || {},
encoder = options.encode || options.encoder || default_encoder;
encoder = is_string(options.encoder) ? Charset[options.encoder] : options.encode || options.encoder || default_encoder;
/** @type Encoder */
this.encoder = encoder.encode ? encoder : "object" == typeof encoder ? new Encoder(encoder) : { encode: encoder };
@@ -67,7 +67,7 @@ export default function Index(options, _register) {
this.resolve = !1 !== options.resolve;
if (tmp = options.db) {
this.db = tmp.mount(this);
this.db = this.mount(tmp);
}
this.commit_auto = !1 !== options.commit;
this.commit_task = [];