1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-10-01 23:56:41 +02:00

usinst Sqlite within examples

This commit is contained in:
Thomas Wilkerling
2025-03-11 22:43:44 +01:00
parent 3d7db8526e
commit 59e95a2951
78 changed files with 897 additions and 35497 deletions

View File

@@ -2,7 +2,6 @@
import pg_promise from "pg-promise";
import StorageInterface from "../interface.js";
import Document from "../../document.js";
import { concat, toArray } from "../../common.js";
const defaults = {
schema: "flexsearch",
@@ -72,7 +71,8 @@ export default function PostgresDB(name, config = {}) {
}
PostgresDB.prototype.mount = function (flexsearch) {
if (flexsearch.constructor === Document) {
//if(flexsearch.constructor === Document){
if (!flexsearch.encoder) {
return flexsearch.mount(this);
}
flexsearch.db = this;