mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-10-04 17:11:33 +02:00
bundle pre-release
# Conflicts: # README.md
This commit is contained in:
9
dist/module-debug/document/add.js
vendored
9
dist/module-debug/document/add.js
vendored
@@ -34,14 +34,15 @@ Document.prototype.add = function (id, content, _append) {
|
||||
if ("function" == typeof tree) {
|
||||
const tmp = tree(content);
|
||||
if (tmp) {
|
||||
index.add(id, tmp, /* suggest */ /* append: */!1, /* tag? */ /* stringify */ /* stringify */ /* skip update: */ /* append: */ /* skip update: */ /* skip_update: */!0 /*await rows.hasNext()*/ /*await rows.hasNext()*/ /*await rows.hasNext()*/);
|
||||
index.add(id, tmp, /* suggest */ /* append: */!1, /* tag? */ /* stringify */ /* stringify */ /* skip update: */ /* append: */ /* skip update: */ /* skip_update: */!0 /*await rows.hasNext()*/
|
||||
/*await rows.hasNext()*/ /*await rows.hasNext()*/);
|
||||
}
|
||||
} else {
|
||||
const filter = tree._filter;
|
||||
if (filter && !filter(content)) {
|
||||
continue;
|
||||
}
|
||||
if (tree instanceof String) {
|
||||
if (tree.constructor === String) {
|
||||
tree = ["" + tree];
|
||||
} else if (is_string(tree)) {
|
||||
tree = [tree];
|
||||
@@ -70,7 +71,7 @@ Document.prototype.add = function (id, content, _append) {
|
||||
if (filter && !filter(content)) {
|
||||
continue;
|
||||
}
|
||||
if (tree instanceof String) {
|
||||
if (tree.constructor === String) {
|
||||
tree = "" + tree;
|
||||
}
|
||||
tags = parse_simple(content, tree);
|
||||
@@ -146,7 +147,7 @@ Document.prototype.add = function (id, content, _append) {
|
||||
custom = tree(content);
|
||||
if (!custom) continue;
|
||||
tree = [tree._field];
|
||||
} else if (is_string(tree) || tree instanceof String) {
|
||||
} else if (is_string(tree) || tree.constructor === String) {
|
||||
payload[tree] = content[tree];
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user