Search for substrings in specific order of appearance

Yes, but you wouldn't have to write query DSL. You could just query the field in the query bar like this:

arr.key:"val1 val2"

The double quotes around the values implies a phrase search. You can learn more about that syntax here: https://www.elastic.co/guide/en/kibana/current/kuery-query.html

1 Like