wuyunfeng commented on a change in pull request #3454: URL: https://github.com/apache/incubator-doris/pull/3454#discussion_r440588407
########## File path: fe/src/main/java/org/apache/doris/external/elasticsearch/EsIndexState.java ########## @@ -44,7 +47,43 @@ public EsIndexState(String indexName) { this.partitionDesc = null; this.partitionKey = null; } - + + /** + * Parse shardRoutings from the json + * @param indexName indexName(alias or really name) + * @param shardLocation the return value of _search_shards + * @return shardRoutings is used for searching + */ + public static EsIndexState fromShardLocation(String indexName, String shardLocation) { Review comment: Doris On ES maybe would use `slice scroll` in future, at this time, we would add `findSlicePartitions` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org