# Cannot highlight a particular field

**URL:** <https://discuss.elastic.co/t/cannot-highlight-a-particular-field/12521>\
**Category:** Elasticsearch\
**Created:** [June 22, 2013, 4:26pm UTC](https://discuss.elastic.co/t/cannot-highlight-a-particular-field/12521 "2013-06-22T16:26:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadyabhi](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shadyabhi](https://discuss.elastic.co/u/shadyabhi)\
**Post date:** [June 22, 2013, 4:26pm UTC](https://discuss.elastic.co/t/cannot-highlight-a-particular-field/12521/1 "2013-06-22T16:26:25Z")

</div>

Hi all,

There is a issue where I can't highlight a particular field & I am clueless  
about the error here.

Analyzer:

```
    "analysis": {
        "analyzer": {
            "nonword":{
                "type": "pattern",
                "pattern":"[^\\w]+"
            }
        }
    }

```

Mapping:

```
            "server" : {
                "type" : "multi_field",
                    "fields" : {
                        "server": {"type" : "string", "analyzer" :

```

"nonword"},  
"not\_analyzed" : { "type" : "string", "index" :  
"not\_analyzed" }  
}  
},

Query: [http://pb.abhijeetr.com/UiHE?json](http://pb.abhijeetr.com/UiHE?json)

Response:

{  
"error" : "SearchPhaseExecutionException[Failed to execute phase  
[query\_fetch], total failure; shardFailures  
{[iFkY8B1mSfqWCItKa3Yx7g][events-mq][0]:  
FetchPhaseExecutionException[[events-mq][0]:  
query[filtered(server:"\*")-\>cache(date:[1340381493703 TO  
1371917493703])],from[0],size[500],sort[\<custom:"date":  
org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@4b32470e\>!]:  
Fetch Failed [Failed to highlight field [server]]]; nested:  
IOException[Stream closed]; }]",  
"status" : 500  
}

Can anybody explain what's the issue here? Thanks

--  
Regards,  
Abhijeet Rastogi (shadyabhi)

> **[Abhijeet's Blog](https://blog.abhijeetr.com/)**
>
> I write about problems that I solve

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [June 24, 2013, 7:26am UTC](https://discuss.elastic.co/t/cannot-highlight-a-particular-field/12521/2 "2013-06-24T07:26:19Z")

</div>

Hi,

Thank you for reporting the problem. Can you provide us with a full gist to  
reproduce the issue (with curl commands to create the index, configure the  
mapping, add data and finally run the query that raises this error)?

Thank you.

--  
Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:29am UTC](https://discuss.elastic.co/t/cannot-highlight-a-particular-field/12521/3 "2017-07-06T02:29:51Z")

</div>


