Closed
Description
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'?