I am using Elasticsearch and I need to do a phrase_search with the first term matching as regex. To be more precise: I need to search over the string that has this patter:
"(number) msec".
I know that there is the "regexp" query type, but that allows me to search only for just one term. Using two boolean clauses would not work too, since It would be irrespective of the sequence.
Instead, I would like to use the "regexp" operator somehow nested inside the phrase query, in order to have a match in the exact sequence.
Does anybody know how to do it?