# Getting a result with a specific sequence of words in it

**URL:** <https://discuss.elastic.co/t/getting-a-result-with-a-specific-sequence-of-words-in-it/143538>\
**Category:** Elasticsearch\
**Created:** [August 8, 2018, 2:25pm UTC](https://discuss.elastic.co/t/getting-a-result-with-a-specific-sequence-of-words-in-it/143538 "2018-08-08T14:25:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eilon](https://avatars.discourse-cdn.com/v4/letter/e/c4cdca/32.png) [@eilon](https://discuss.elastic.co/u/eilon)\
**Post date:** [August 8, 2018, 2:25pm UTC](https://discuss.elastic.co/t/getting-a-result-with-a-specific-sequence-of-words-in-it/143538/1 "2018-08-08T14:25:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 5, 2018, 2:25pm UTC](https://discuss.elastic.co/t/getting-a-result-with-a-specific-sequence-of-words-in-it/143538/2 "2018-09-05T14:25:20Z")

</div>

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