redis-om-node icon indicating copy to clipboard operation
redis-om-node copied to clipboard

Redis V8 Creation of new Index via Redis OM

Open stevan001 opened this issue 7 months ago • 7 comments

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.

stevan001 avatar May 22 '25 00:05 stevan001

same issue here

wanxxz avatar May 25 '25 03:05 wanxxz

same issue here

paucabuti avatar Jun 17 '25 13:06 paucabuti

same issue here 🐕

EdgarAlonsoPerez avatar Jul 04 '25 00:07 EdgarAlonsoPerez

Same issue here, any way to work around this?

MeineZ avatar Aug 15 '25 11:08 MeineZ

same issue.

Developer062025 avatar Aug 27 '25 21:08 Developer062025

According to https://github.com/redis-stack/redis-stack:

We will stop releasing maintainance releases of Redis Stack (6.2, 7.2, and 7.4) on December 2025.

This means redis-om-node will be considered a deprecated package in a few months if this issue is not fixed 🫤

tiagojufr avatar Sep 24 '25 10:09 tiagojufr

What can we do to prevent that?

FrancescoDiMuro avatar Sep 24 '25 11:09 FrancescoDiMuro