# Highlighting on a copy\_to Field

**URL:** <https://discuss.elastic.co/t/highlighting-on-a-copy-to-field/106583>\
**Category:** Elasticsearch\
**Created:** [November 6, 2017, 8:01pm UTC](https://discuss.elastic.co/t/highlighting-on-a-copy-to-field/106583 "2017-11-06T20:01:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zillion582](https://avatars.discourse-cdn.com/v4/letter/z/51bf81/32.png) [@zillion582](https://discuss.elastic.co/u/zillion582)\
**Post date:** [November 6, 2017, 8:01pm UTC](https://discuss.elastic.co/t/highlighting-on-a-copy-to-field/106583/1 "2017-11-06T20:01:14Z")

</div>

Hello,

Is it possible to highlight a copy\_to field?

I have a title which I want to be able to analyze two different ways. One with stop words and stemming, and one without. I can effectively query the search results against either field, however when using the copy\_to field in a highlight\_query I do not see any highlight results.

Below is the relevant mapping.

```
    "stemmed_index": {
      "type": "custom",
      "char_filter": "html_strip",
      "tokenizer": "standard",
      "filter": [
        "standard",
        "synonym_filter",
        "stop",
        "lowercase",
        "stemmer",
        "asciifolding"
      ]
    },
    "stemmed_search": {
      "type": "custom",
      "tokenizer": "standard",
      "filter": [
        "standard",
        "synonym_filter",
        "stop",
        "lowercase",
        "stemmer",
        "asciifolding"
      ]
    },
    "index_unstemmed": {
      "type": "custom",
      "char_filter": "html_strip",
      "tokenizer": "standard",
      "filter": [
        "common_grams_index",
        "lowercase"
      ]
    },
    "search_unstemmed": {
      "type": "custom",
      "tokenizer": "standard",
      "filter": [
        "synonym_filter",
        "lowercase"
      ]
    },

```

"title": {  
"type": "text",  
"analyzer": "stemmed\_index",  
"search\_analyzer": "stemmed\_search",  
"term\_vector": "with\_positions\_offsets",  
"copy\_to": [  
"title\_unstemmed"  
]  
},  
"title\_unstemmed": {  
"type": "text",  
"analyzer": "index\_unstemmed",  
"search\_analyzer": "search\_unstemmed",  
"term\_vector": "with\_positions\_offsets",  
"include\_in\_all": true  
}

I found this StackOverflow post but even using the same mapping between my title and title\_unstemmed fields did not fix my highlighting issue.

> <https://stackoverflow.com/questions/44849279/elasticsearch-highlighting-multi-match-query-on-custom-all-fields-created>

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:** [December 4, 2017, 8:01pm UTC](https://discuss.elastic.co/t/highlighting-on-a-copy-to-field/106583/2 "2017-12-04T20:01:28Z")

</div>

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