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

Alias to an index #33

Open
icyice80 opened this issue Jul 21, 2023 · 1 comment
Open

Alias to an index #33

icyice80 opened this issue Jul 21, 2023 · 1 comment

Comments

@icyice80
Copy link

Hi

I cant find any code related to FT.ALIASADD/DEL/UPDATE. Here is my use case:
a. create an index with some data
b. expose the index out for other apps to use it
c. have a nightly job to rebuild the index as we need to refresh the data
d. during the rebuild process, the index is not accessible by other apps, we would like to use index alias to solve this problem.

Does it mean that I need to issue a raw command in this case like FT.ALIASUPDATE?

Thanks

@shacharPash
Copy link

@icyice80 , I recommend you to use NRedisStack.

NRedisStack is an official Redis library (based on StackExchange.Redis) that provides support for Redis Stack commands.
The FT.ALIASADD/DEL/UPDATE commands are implemented in the library as part of the Search module.

Here is an example from the tests of using the commands you mentioned

If you have any further questions about using NRedisStack, feel free to contact me

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