Comments (12)
@bsbodden It works with spring-data-redis
repositories, see additional reproducer.
from redis-om-spring.
@luxia7758 here's a standalone working example with Document Repos. https://github.com/redis-developer/redis-om-spring-skeleton-app See if that works for you and then adjust yours to match. If your repo is public you can also point me to it and I can clone it and give it a try.
from redis-om-spring.
@luxia7758 here's a standalone working example with Document Repos. https://github.com/redis-developer/redis-om-spring-skeleton-app See if that works for you and then adjust yours to match. If your repo is public you can also point me to it and I can clone it and give it a try.
Thanks for your reply. I tried your url for redis-om-spring-skeleton-app, and it returns 404. I had just created a empty repo named redis-om-spring-demo and give you access. You are free to clone now.
from redis-om-spring.
@luxia7758 can you put a reproducer in that repo and I can investigate? Thanks!
from redis-om-spring.
@bsbodden I have the same problem. This happens when I add spring-cloud-stream
as dependency.
As soon as I remove the dependency, it works.
Here is a reproducer repo
from redis-om-spring.
@bsbodden I have the same problem. This happens when I add
spring-cloud-stream
as dependency. As soon as I remove the dependency, it works.Here is a reproducer repo
Thanks for the reproducer, I started investigating "Spring Cloud Stream" with Redis (Spring Data Redis) and it seems the two projects aren't currently compatible, see:
- https://stackoverflow.com/questions/64215736/how-can-i-configure-redis-as-a-spring-cloud-dataflow-source
- https://spring.io/blog/2020/09/29/case-study-remote-file-ingest-with-spring-cloud-data-flow
- https://github.com/spring-cloud/spring-cloud-stream-binder-redis (this is the deprecated binder)
I will investigate further since high-level Streams-support If one of the features we are planning
from redis-om-spring.
@bsbodden You're welcome!
I imported spring-cloud-stream
to use it with the kafka-binder
btw., I had no intention of using the redis-binder
.
The two dependencies (spring-cloud-stream and redis-om-spring) should not clash in my opinion.
I think the problem lies with the RedisDocumentRepositoryFactoryBean
constructor. It states that the RedisModulesOperations
parameter is ambiguous.
from redis-om-spring.
@bsbodden You're welcome! I imported
spring-cloud-stream
to use it with thekafka-binder
btw., I had no intention of using theredis-binder
. The two dependencies (spring-cloud-stream and redis-om-spring) should not clash in my opinion.I think the problem lies with the
RedisDocumentRepositoryFactoryBean
constructor. It states that theRedisModulesOperations
parameter is ambiguous.
Can you do a quick test with just Spring Data Redis instead of Redis OM Spring, that might give us a clue. On the meantime I'll try to see if an explicit declaration of RedisModulesOperations does the trick.
from redis-om-spring.
@bsbodden It works with
spring-data-redis
repositories, see additional reproducer.
No luck so far, tried a bunch of techniques to deal with ambiguity in the injection process but no luck so far. I'll make a new release as soon as I can find a solution.
from redis-om-spring.
I made it work, I will submit a PR.
from redis-om-spring.
Awesome! Thanks, David (@daveish) ! I will check the PR now.
from redis-om-spring.
I opened another PR. I did some boy scouting while I was at it.
See #38
Cheers!
from redis-om-spring.
Related Issues (20)
- com.redis.om.spring.ops.json.JSONOperationsImpl is using JSONArray.isEmpty() method which does not exist HOT 1
- Custom converters for Enum to String not working HOT 1
- Add support for repository derived delete methods like Spring Data JPA HOT 1
- Fastest way to read 1 million records from Redis using redis-om library HOT 2
- Add exist/notExist predicated for EntityStream's Aggregations
- Client Side Caching support via Jedis
- Query generation with InPredicate HOT 3
- Support for Lettuce Redis Client HOT 1
- The SearchOperations<String>.search() interface does not set the returnFields attribute; why does the result set not include any field data? HOT 2
- Negative @TimeToLive value in @Document entity executes redis EXPIRE command
- Vector Search example using redis-om-spring HOT 5
- Handle search aliased fields with special characters HOT 6
- Skip index creation and use existing index HOT 20
- SORTBY clause property not escaped in finder queries HOT 3
- QueryByExample<T> with RedisEnhancedRepository<T, ID> HOT 4
- Support for java.time.YearMonth Gson (TypeAdapter) HOT 2
- Using Llama3 embedding model in roms-vss example HOT 4
- Transactions in RedisOM? HOT 2
- Paginated results for QBE HOT 1
- Pagination not working with search HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-om-spring.