Skip to content

Redis V8 Creation of new Index via Redis OM  #265

@stevan001

Description

@stevan001

Hi I've just found a small issue. When creating a new index targeting the latest release of Redis version 8 I get the redis client error "no such index" and it fails there.

I've tracked it to the lib/repository/repository.ts createIndex function specifically the section of code that compares the currentHash to the incoming hash when creating a new index the currentHash is always null so i just added a an in statement and made the dropIndex optional.

 if (currentIndexHash !== incomingIndexHash) {
      if (currentIndexHash) {
        await this.dropIndex();
      }

please let me know if this could be incoperated into a new release that would work with redis version 8.

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