-
Notifications
You must be signed in to change notification settings - Fork 42
Fix index creation issue when multiple options are used with fields #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- add missing xml doc for parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses the index creation issue that occurs when multiple options are used with field definitions. The changes reposition the "SORTABLE" flag in the search tests and schema construction while adding tests to validate the updated behavior.
- Adjust the ordering of command arguments by moving the "SORTABLE" option in the schema and search command builder.
- Introduce new tests in IndexCreationTests to verify behavior when missing, empty, and sortable fields are involved.
- Update XML documentation comments for field creation methods to include details on missing and empty index options.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/NRedisStack.Tests/Search/SearchTests.cs | Reordering of the "SORTABLE" option in field commands |
tests/NRedisStack.Tests/Search/IndexCreationTests.cs | New tests added to verify index creation with missing/empty/sortable fields |
src/NRedisStack/Search/Schema.cs | Adjusted ordering of options (SORTABLE, INDEXMISSING, INDEXEMPTY) and updated XML docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
…edis#405) * - change order of field options in search&query - add missing xml doc for parameters * fix search tests * fix format
…edis#405) * - change order of field options in search&query - add missing xml doc for parameters * fix search tests * fix format
…edis#405) * - change order of field options in search&query - add missing xml doc for parameters * fix search tests * fix format
Fixes/Closes #404