Files
micro-service-api/node_modules/@redis/search/dist/lib/commands/SEARCH_NOCONTENT.js

34 lines
1.1 KiB
JavaScript
Raw Normal View History

2025-11-11 12:36:06 +07:00
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const SEARCH_1 = __importDefault(require("./SEARCH"));
exports.default = {
NOT_KEYED_COMMAND: SEARCH_1.default.NOT_KEYED_COMMAND,
IS_READ_ONLY: SEARCH_1.default.IS_READ_ONLY,
/**
* Performs a search query but returns only document ids without their contents.
* @param args - Same parameters as FT.SEARCH:
* - parser: The command parser
* - index: Name of the index to search
* - query: The text query to search
* - options: Optional search parameters
*/
parseCommand(...args) {
SEARCH_1.default.parseCommand(...args);
args[0].push('NOCONTENT');
},
transformReply: {
2: (reply) => {
return {
total: reply[0],
documents: reply.slice(1)
};
},
3: undefined
},
unstableResp3: true
};
;
//# sourceMappingURL=SEARCH_NOCONTENT.js.map