Skip to content

Conversation

@bsbodden
Copy link
Contributor

The RedisStore and AsyncRedisStore search methods were hardcoded to return at most 10 results regardless of the specified limit parameter. This fix properly respects the
user-specified limit when searching, enabling retrieval of more than 10 results when needed.

  • Modified _get_batch_search_queries to return limit and offset values
  • Updated search query creation to use Query.paging() method with the user-specified limit
  • Added integration tests to verify fix in both sync and async implementations

@bsbodden bsbodden self-assigned this Apr 30, 2025
Copy link

@rbs333 rbs333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor

@tylerhutcherson tylerhutcherson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Include in the 0.0.5 release?

  The RedisStore and AsyncRedisStore search methods were hardcoded to return at most 10 results regardless of the specified limit parameter. This fix properly respects the
  user-specified limit when searching, enabling retrieval of more than 10 results when needed.

  - Modified _get_batch_search_queries to return limit and offset values
  - Updated search query creation to use Query.paging() method with the user-specified limit
  - Added integration tests to verify fix in both sync and async implementations
@bsbodden bsbodden merged commit 323a485 into main Apr 30, 2025
19 checks passed
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.

4 participants