-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Question] Adding new indexed properties to existing objects #333
Comments
It does yes. I too was looking for the migrate index, and had to just drop and re-create the index (which is less than ideal when moving to a prd env. as there is a time window when the results returned are in flux.) Would be good to see the Migrate Index working. |
Hi @Artonus - thanks for pointing that bit out - definitely doesn't belong in there - Migrate was something we considered adding a while ago (before Redis OM was released) but we elected not to because of the complexities involved, IIRC RediSearch has the ability to add but not delete fields with FYI @VagyokC4 - the |
@slorello89 That's interesting. So the issue I've noticed is if the index is building, while we query, we may return NULL when a document actually exists. Thinking out loud, if we create a flag to help manage this so that when set, and a query comes back with no results, we can have it internally check if index is creating and if so, wait until complete and try to query again? Maybe even a Func WaitForIndexCreation exposed that would allow me to (in real-time) determine if we should wait for index creation and try the query again, or continue on with the empty results. |
Hi there!
I have a question regarding adding new Property to an already indexed object.
The problem I am facing is I am trying to query using the newly added property, but it doesn't find any objects.
I suspect that it is due to the indexes not being up to date.
What I have found is the Index Migration command in the docs.
https://github.com/redis/redis-om-dotnet/blob/main/docs/README.md#migrate
Unfortunately, I cannot find it in the
MigrateIndex
function in theIRedisConnection
.Will I dropping the index and recreating it manually will solve the problem?
Redis.OM Version: 0.4.0
The text was updated successfully, but these errors were encountered: