Commit b4bf91aa authored by Sven Franck's avatar Sven Franck

added wildcard character back to allDocs search

parent ff36ab5e
......@@ -5558,6 +5558,13 @@
obj.last = value;
}
// set wildcard here
if (default_query.wildcard_character) {
obj.wildcard_character = default_query.wildcard_character;
} else {
obj.wildcard_character = "%";
}
// "foo" = "bar"
if (is_value && key) {
obj.query += ' AND (' + key + ':"' + value + '")';
......@@ -5575,7 +5582,10 @@
if (!util.findKey(
(query_object || {}), "query_list", "key", field_list[i])
) {
wrap += field_list[i] + ': "' + value + '" OR ';
wrap += field_list[i] + ': "' +
obj.wildcard_character +
value +
obj.wildcard_character + '" OR ';
}
}
obj.query += ' AND (' + wrap.slice(0, -4) + ')';
......@@ -5616,11 +5626,6 @@
} else {
obj.limit = [];
}
if (default_query.wildcard_character) {
obj.wildcard_character = default_query.wildcard_character;
} else {
obj.wildcard_character = "%";
}
}
return obj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment