Skip to content

Docs are out of date or contain errors #137

@rankam

Description

@rankam
  • There is no type NumericalField, it is NumericField
  • Client doesn't accept username as an parameter
    client = Client("my-index", username="user", password="my-password")
  • The following example that you show doesn't work - you can't set a Python datetime object in Redis
import datetime

from redisearch import Client

START_TIME = datetime.datetime.now()

client = Client("my-index")

client.redis.set("start-time", START_TIME)
  • This example is missing a colon
try:
    client.info()
except ResponseError
    # Index does not exist. We need to create it!
    client.create_index(SCHEMA, definition=definition)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions