You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
@@ -101,15 +101,15 @@ describe('CREATE', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('with SEPERATOR', () => {
|
it('with SEPARATOR', () => {
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
transformArguments('index', {
|
transformArguments('index', {
|
||||||
field: {
|
field: {
|
||||||
type: SchemaFieldTypes.TAG,
|
type: SchemaFieldTypes.TAG,
|
||||||
SEPERATOR: 'seperator'
|
SEPERATOR: 'separator'
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPERATOR', 'seperator']
|
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPERATOR', 'separator']
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -200,7 +200,7 @@ type CreateSchemaNumericField = CreateSchemaField<SchemaFieldTypes.NUMERIC>;
|
|||||||
type CreateSchemaGeoField = CreateSchemaField<SchemaFieldTypes.GEO>;
|
type CreateSchemaGeoField = CreateSchemaField<SchemaFieldTypes.GEO>;
|
||||||
|
|
||||||
type CreateSchemaTagField = CreateSchemaField<SchemaFieldTypes.TAG, {
|
type CreateSchemaTagField = CreateSchemaField<SchemaFieldTypes.TAG, {
|
||||||
SEPERATOR?: string;
|
SEPARATOR?: string;
|
||||||
CASESENSITIVE?: true;
|
CASESENSITIVE?: true;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
@@ -248,8 +248,8 @@ export function pushSchema(args: RedisCommandArguments, schema: CreateSchema) {
|
|||||||
// break;
|
// break;
|
||||||
|
|
||||||
case 'TAG':
|
case 'TAG':
|
||||||
if (fieldOptions.SEPERATOR) {
|
if (fieldOptions.SEPARATOR) {
|
||||||
args.push('SEPERATOR', fieldOptions.SEPERATOR);
|
args.push('SEPARATOR', fieldOptions.SEPERATOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fieldOptions.CASESENSITIVE) {
|
if (fieldOptions.CASESENSITIVE) {
|
||||||
|
Reference in New Issue
Block a user