redis / redis-om-spring

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

Enable customization of the Redis Indices when declaring an Entity #415

Closed bsbodden closed 1 month ago

bsbodden commented 1 month ago

Add a property to the Document annotation as:

@Document(indexName = "myCustomIndexName")
public class MyEntity {
}

Problem, we will have to replace RedisHash with a Redis OM specific annotation. Or add an extra annotation just for the indexName

dxps commented 1 month ago

Awesome! @bsbodden Do you have an ETA for the 0.9.1 release that includes this fix, please? Thanks!