-first commit

This commit is contained in:
2025-11-11 12:36:06 +07:00
commit b99c214434
5683 changed files with 713336 additions and 0 deletions

27
node_modules/@redis/search/dist/lib/commands/SUGGET.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
/**
* Gets completion suggestions for a prefix from a suggestion dictionary.
* @param parser - The command parser
* @param key - The suggestion dictionary key
* @param prefix - The prefix to get completion suggestions for
* @param options - Optional parameters:
* - FUZZY: Enable fuzzy prefix matching
* - MAX: Maximum number of results to return
*/
parseCommand(parser, key, prefix, options) {
parser.push('FT.SUGGET');
parser.pushKey(key);
parser.push(prefix);
if (options?.FUZZY) {
parser.push('FUZZY');
}
if (options?.MAX !== undefined) {
parser.push('MAX', options.MAX.toString());
}
},
transformReply: undefined
};
//# sourceMappingURL=SUGGET.js.map