mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-28 06:19:06 +02:00
fix result highlighting on document worker
This commit is contained in:
4
dist/module-debug/db/postgres/index.js
vendored
4
dist/module-debug/db/postgres/index.js
vendored
@@ -48,7 +48,7 @@ let DB, TRX;
|
||||
*/
|
||||
|
||||
export default function PostgresDB(name, config = {}) {
|
||||
if (!this) {
|
||||
if (!this || this.constructor !== PostgresDB) {
|
||||
return new PostgresDB(name, config);
|
||||
}
|
||||
if ("object" == typeof name) {
|
||||
@@ -70,7 +70,7 @@ export default function PostgresDB(name, config = {}) {
|
||||
|
||||
PostgresDB.prototype.mount = function (flexsearch) {
|
||||
//if(flexsearch.constructor === Document){
|
||||
if (!flexsearch.encoder) {
|
||||
if (flexsearch.index) {
|
||||
return flexsearch.mount(this);
|
||||
}
|
||||
flexsearch.db = this;
|
||||
|
Reference in New Issue
Block a user