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

High-level client: fix clusterAlias parsing in SearchHit #32465

Merged
merged 1 commit into from
Jul 31, 2018

Commits on Jul 30, 2018

  1. High-level client: fix clusterAlias parsing in SearchHit

    When using cross-cluster search through the high-level REST client, the cluster alias from each search hit was not parsed correctly. It would be part of the index field initially, but overridden just a few lines later once setting the shard target (in case we have enough info to build it from the response). In any case, getClusterAlias returns `null` which is a bug.
    
    With this change we rather parse back clusterAliases from the index name, set its corresponding field and properly handle the two possible cases depending on whether we can or cannot build the shard target object.
    javanna committed Jul 30, 2018
    Configuration menu
    Copy the full SHA
    6226eba View commit details
    Browse the repository at this point in the history