-
Notifications
You must be signed in to change notification settings - Fork 1.2k
CatAliases API #1591
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
Comments
Hi @DivyaMalini, Did you set routing value during alias creation? Have a look into documentation. This is how you can do this with the NEST:
Hope it helps. |
Hi @robertlyson , Yes i had set the routing value during alias creation. Even when i directly run the command through sense plugin (GET _cat/aliases), the results displayed has SearchRouting values set. It is when I used the API in my c# code , i found the results whose routing values are null . |
@DivyaMalini may you share more information about your alias? |
My PutAlias call is defined like this public IPutAliasResponse PutAlias(string indexName, string aliasName) The _cat/Aliases call through sense plugin gives aliasName, indexName, Filter, Search and Index routing. But when executed via code in the catAliasesRecord obtained all the aliases routing(index and search) are returned null FYI , i use Nest 1.6.0 |
@DivyaMalini looks like a bug, so I've created #1593 to address this issue. |
@robertlyson , Great !!! Thanks a lot ... |
Hi
I am using CatAliases API to get the list of all aliases .
My request is something like
ICatAliasesRequest catAliasesRequest = new CatAliasesRequest();
return m_elasticClient.CatAliases(catAliasesRequest);
and i am trying to read every record received from response(IEnumerable). I am observing that the records returned only have alias and index information and returns null for Search and Index routing .
Could anyone please confirm if this is a known issue or point me if i am doing something wrong ?
Thanks in advance !!
The text was updated successfully, but these errors were encountered: