Skip to content
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

Bugfix/comprehensive index equality #496

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

slorello89
Copy link
Member

Closes #494

#479 added support for checking the equality of the current state of your model in your code versus what is in Redis, however there are a number of cases it did not account for which I missed during my review (e.g Vector fields, the special arguments from text fields, special arguments in the Document Attribute) one of which someone tripped over in #494. This PR should address all of these.

There is still the special case where it will not be able to definitively tell whether or not a index definition matches as several fields from the index definition are not returned from FT.INFO, namely STOPWORDS, PHONETIC, EF_RUNTIME, EPSILON, in which ase Redis OM will simply throw an ArgumentException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IsIndexCurrentAsync always returns false
1 participant