Getting a result with a specific sequence of words in it

Hey all,

I'm trying to get all the results that contains some keywords in a specific order.
For example:

GET /_myIndex/_search 
{
  "query": {
    "bool": {
      "must": [
          {"match_phrase_prefix": {"CommandLine": "hidden*downloadstring*"}}
      ]
    }
  }
}

In this case: find all fields "CommandLine" which contains [anything] + hidden + [anything] + downloadstring + [anything]

What am I doing wrong?

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.