Skip to content

Investigate #508 - FT.SEARCH not applying offset - #513

Merged
mgravell merged 5 commits into
masterfrom
marc/508
Jul 6, 2026
Merged

mgravell merged 5 commits into
masterfrom
marc/508

Conversation

@mgravell

@mgravell mgravell commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Note

Low Risk
Test-only changes with no production library modifications; CI may skip one environment combination until the upstream RediSearch bug is fixed.

Overview
Adds TestSearchLimitOffset to exercise FT.SEARCH with Query.Limit(20, 10) (offset 20, count 10) on a sorted numeric index and assert 30 total hits with 10 documents returned, tied to investigating #508.

The test runs across EndpointsFixture.Env.AllEnvironments, applies existing SkipClusterPre8, and skips cluster + RESP3 when RediSearch ignores the LIMIT offset (documented as RediSearch#10369, server-side—not the client).

Also replaces log.WriteLine with the base Log(...) helper in several Alter index info diagnostics.

Reviewed by Cursor Bugbot for commit dec1973. Bugbot is set up for automated code reviews on this repo. Configure here.

@mgravell mgravell changed the title test/fix for #508 Investigate #508 - FT.SEARCH not applying offset Jul 6, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit dec1973. Configure here.

Comment thread tests/NRedisStack.Tests/Search/SearchTests.cs
@mgravell

mgravell commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

merging; new tests only

@mgravell
mgravell merged commit b719715 into master Jul 6, 2026
28 checks passed
@mgravell
mgravell deleted the marc/508 branch July 6, 2026 13:26
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