Skip to content

Conversation

bsbodden
Copy link
Collaborator

Add support for repositories to return SearchStream for fluent query operations. This enables combining Spring Data repository methods with Entity Stream capabilities for both JSON documents and Redis Hashes.

Changes:

  • Implement SearchStream detection and handling in RediSearchQuery for JSON documents
  • Implement SearchStream detection and handling in RedisEnhancedQuery for Redis Hashes
  • Create EntityStream instances that are configured with query filters
  • Support lazy execution when terminal operations are called

Documentation:

  • Add Entity Streams Integration section to hash-mappings.adoc
  • Update comparison table to mention SearchStream return capability

This feature allows repository methods to return SearchStream enabling:

  • Fluent filtering with field predicates
  • Mapping and transformation operations
  • Sorting, limiting, and counting
  • Lazy evaluation for better performance

Add support for repositories to return SearchStream for fluent query operations.
This enables combining Spring Data repository methods with Entity Stream
capabilities for both JSON documents and Redis Hashes.

Changes:
- Implement SearchStream detection and handling in RediSearchQuery for JSON documents
- Implement SearchStream detection and handling in RedisEnhancedQuery for Redis Hashes
- Create EntityStream instances that are configured with query filters
- Support lazy execution when terminal operations are called

Documentation:
- Add Entity Streams Integration section to hash-mappings.adoc
- Update comparison table to mention SearchStream return capability

This feature allows repository methods to return SearchStream<T> enabling:
- Fluent filtering with field predicates
- Mapping and transformation operations
- Sorting, limiting, and counting
- Lazy evaluation for better performance
@bsbodden bsbodden merged commit 6ecaa14 into redis:main Sep 13, 2025
1 check passed
@bsbodden bsbodden deleted the bsb/search-streams-from-queries branch September 13, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant