You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-12-12 21:21:15 +03:00
(docs) add jsdoc comments to command parsers (#2984)
* (docs) bloom: add jsdocs for all commands * (docs) json: add jsdocs * (docs) search: add jsdocs for all commands * (docs) jsdocs for std commands * (docs) jsdoc comments to time series commands
This commit is contained in:
@@ -292,6 +292,22 @@ export interface CreateOptions {
|
||||
export default {
|
||||
NOT_KEYED_COMMAND: true,
|
||||
IS_READ_ONLY: true,
|
||||
/**
|
||||
* Creates a new search index with the given schema and options.
|
||||
* @param parser - The command parser
|
||||
* @param index - Name of the index to create
|
||||
* @param schema - Index schema defining field names and types (TEXT, NUMERIC, GEO, TAG, VECTOR, GEOSHAPE)
|
||||
* @param options - Optional parameters:
|
||||
* - ON: Type of container to index (HASH or JSON)
|
||||
* - PREFIX: Prefixes for document keys to index
|
||||
* - FILTER: Expression that filters indexed documents
|
||||
* - LANGUAGE/LANGUAGE_FIELD: Default language for indexing
|
||||
* - SCORE/SCORE_FIELD: Document ranking parameters
|
||||
* - MAXTEXTFIELDS: Index all text fields without specifying them
|
||||
* - TEMPORARY: Create a temporary index
|
||||
* - NOOFFSETS/NOHL/NOFIELDS/NOFREQS: Index optimization flags
|
||||
* - STOPWORDS: Custom stopword list
|
||||
*/
|
||||
parseCommand(parser: CommandParser, index: RedisArgument, schema: RediSearchSchema, options?: CreateOptions) {
|
||||
parser.push('FT.CREATE', index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user