Query DSL in Kibana search bar

Thank you Pieter, this code works. Could you please let me know the reason? Thanks.