redis / redis-om-spring

Spring Data Redis extensions for better search, documents models, and more
MIT License
599 stars 93 forks source link

spring.redis.database: 1 error #156

Closed axinger closed 1 year ago

axinger commented 1 year ago
spring:
  application:
    name: redis-om-demo

  redis:
    host: 192.168.101.143
    port: 6376
#    database: 1

this is right

but user database: 1 has error

spring:
  application:
    name: redis-om-demo

  redis:
    host: 192.168.101.143
    port: 6376
    database: 1

https://github.com/bsbodden/issue-145.git

2023-01-18 15:21:52.825 ERROR 25420 --- [io-11013-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisDataException: com.example.CompanyIdx: no such index] with root cause

redis.clients.jedis.exceptions.JedisDataException: com.example.CompanyIdx: no such index
bsbodden commented 1 year ago

The database parameter is not supported on RediSearch at the moment, see https://github.com/RediSearch/RediSearch/issues/367