Kibana Regular expression search
<p>I am newbie to ELK. I want to search for docs based on order of occurrence of words in a field. For example,</p>

<p>In doc1, my_field: "MY FOO WORD BAR EXAMPLE" <br> In doc2, my_field: "MY BAR WORD FOO EXAMPLE"</p>

<p>I would like to query in Kibana for docs where "FOO" is followed by "BAR" and not the opposite. So, I would like doc1 to return in this case and not doc2.
I tried using below query in Kibana search. But, it is not working. This query doesn't even produce any search results.</p>

<pre><code>my_field.raw:/.*FOO.*BAR.*/
</code></pre>

<p>I also tried with analyzed field(just <code>my_field</code>), though I came to know that should not work. And of course, that didn't produce any results either.</p>

<p>Please help me with this regex search. Why am I not getting any matching result for that query?</p>