Skip to content

Use of SCHEMA_FIELD_TYPE and SchemaFieldTypes in redisearch #2985

Closed
@23navi

Description

@23navi

Description

The documentation for redisearch packages/search uses the SchemaFieldTypes which is coming from import {SchemaFieldTypes} from "redis" but in the same document we have an example link which takes to
examples/search-hashes.js and here I see

import { createClient, SCHEMA_FIELD_TYPE } from 'redis';
...
type: SCHEMA_FIELD_TYPE.TEXT

While testing locally with "redis": "^4.0.3"
When trying import { SCHEMA_FIELD_TYPE } from "redis"
I am getting the error: '"redis"' has no exported member named 'SCHEMA_FIELD_TYPE'. Did you mean 'SchemaFieldTypes'?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions