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

Update document in sonic #292

Open
amirEBD opened this issue Jul 31, 2022 · 4 comments
Open

Update document in sonic #292

amirEBD opened this issue Jul 31, 2022 · 4 comments

Comments

@amirEBD
Copy link

amirEBD commented Jul 31, 2022

Hi again @valeriansaliou ,
Thanks for your quick and well answering. I was looking for update command in sonic. The requirment I face is a messanger's search system. As you know one of key features is that user will update his/her message and we need to update the queried message.
I know that sonic has ingest and flush commands but the point is how can make an update on the message?

Note: Delete and recreate the message won't work probabley because messages have timestamp. As a primary need, the messages found by search engine should be in order thus recreating won't be a accurate solution.

@valeriansaliou
Copy link
Owner

You need to POP then PUSH again.

@amirEBD
Copy link
Author

amirEBD commented Aug 1, 2022

So what is your solution for messages order by time?

@valeriansaliou
Copy link
Owner

The results ordered is defined by push date + time, there's no other way around.

@amirEBD
Copy link
Author

amirEBD commented Aug 1, 2022

Thanks for your suggestion,
But I didn't get it completley, what do you mean about time? cause there is no timestamp field in sonic.
Do you mean the time which is stored in the other database (the db containing the data)?

PS.: As to my knowledge about sonic it'll just return items by the push date

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

No branches or pull requests

2 participants