Have a look at this thread.
In older versions this was indeed an issue and Kibana has over the years implemented a few different workarounds. In recent versions this is however no longer considered an issue and all indices belonging to the pattern are queried.