Elasticsearch Query on indexes whose name is matching a certain pattern
问题 I have a couple of indexes in my Elasticsearch DB as follows Index_2019_01 Index_2019_02 Index_2019_03 Index_2019_04 . . Index_2019_12 Suppose I want to search only on the first 3 Indexes. I mean a regular expression like this: select count(*) from Index_2019_0[1-3] where LanguageId="English" What is the correct way to do that in Elasticsearch? 回答1: How can I query several indexes with certain names? This can be achieved via multi-index search, which is a built-in capability of Elasticsearch.