Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Composite indexes in Spring Data Redis

$
0
0

I'm using spring data Redis, I'm adding functionality to the project to query Redis hash object with multiple fields. I just created secondary indices on those fields using @Indexed annotation from spring data Redis core.My question is, is there a way to configure my Redis hash object so that I use multi column indexes? Similar to spring data mongo @CompoundIndex.

I can see there's a org.springframework.data.redis.core.convert.CompositeIndexResolver.java, but Im not sure if there is a way to configure compound indexes from java using spring data Redis.


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>