# Highlight when query contains fields and text - ES 1.6.0

**URL:** https://discuss.elastic.co/t/highlight-when-query-contains-fields-and-text-es-1-6-0/24311
**Category:** Elasticsearch
**Created:** [June 25, 2015, 7:43am UTC](https://discuss.elastic.co/t/highlight-when-query-contains-fields-and-text-es-1-6-0/24311 "2015-06-25T07:43:30Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![effoeffi](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@effoeffi](https://discuss.elastic.co/u/effoeffi)
#### Post date: [June 28, 2015, 2:43pm UTC](https://discuss.elastic.co/t/highlight-when-query-contains-fields-and-text-es-1-6-0/24311/5 "2015-06-28T14:43:56Z")

</div>

Wooow, it's working. THANKS! 😃

I don't understand why should I determine that I want highlight on text in the search level (and not at highlight section)?

Another question, let's say my document looks like this:

```json
{ 
  "type": "tweet",
  "fields": {
         "user" : "jack",
         "message" : "I'm jack",
         "comment" : "my first tweet"
         }
}

```

Can I search on **_fields.\*_** instead of specific fields, like: _{fields: "comment, message", query: "your query"}_?  
I understand that on \_all it's not working, but I see in [elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html) that I can use wildcard, they use the follow example:

```json
{
    "query_string" : {
        "fields" : ["city.*"],
        "query" : "this AND that OR thus",
        "use_dis_max" : true
    }
}

```

For me it failed with SearchPhaseExecutionException 😟  
Any suggestion?

Thanks,  
Effi

---

_[View the full topic](https://discuss.elastic.co/t/highlight-when-query-contains-fields-and-text-es-1-6-0/24311)._
