# Force\_source seems not working

**URL:** <https://discuss.elastic.co/t/force-source-seems-not-working/294622>\
**Category:** Elasticsearch\
**Created:** [January 17, 2022, 7:41pm UTC](https://discuss.elastic.co/t/force-source-seems-not-working/294622 "2022-01-17T19:41:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ympark](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@ympark](https://discuss.elastic.co/u/ympark)\
**Post date:** [January 17, 2022, 7:41pm UTC](https://discuss.elastic.co/t/force-source-seems-not-working/294622/1 "2022-01-17T19:41:17Z")

</div>

Hi all,

I am testing the latest Elasticsearch 7.16.3 and encountered an issue.  
I have a keyword type field with the lowercase normaliser. When I get highlight on the keyword field, Highlighting seems not to be applied on the \_source value even though I explicitly set force\_source = true. To reproduce the issue,

```auto
PUT my-index-000001
{
    "mappings": {
        "properties": {
            "tags": {
                "type": "keyword",
                "normalizer": "lowercase"
            },
            "keywords": {
                "type": "keyword"
            },
            "description": {
                "type": "text"
            }
        }
    }
}

POST my-index-000001/_doc
{
  "tags": "Elastic",
  "keywords": "Elastic",
  "description": "Elastic search elastic"
}

```

This is my search request:

```auto
GET my-index-000001/_search
{
    "from": 0,
    "size": 20,
    "query": {
        "bool": {
            "must": [
                {
                    "query_string": {
                        "query": "elastic",
                        "fields": [
                            "keywords",
                            "tags",
                            "description"
                        ]
                    }
                }
            ]
        }
    },
    "highlight": {
        "number_of_fragments": 0,
        "force_source" : true,
        "fields": {
            "keywords": {},
            "tags": {},
            "description": {}
        }
    }
}

```

This is what I have got

```auto
{
    "took": 2,
    "timed_out": false,
    "_shards": {
        "total": 1,
        "successful": 1,
        "skipped": 0,
        "failed": 0
    },
    "hits": {
        "total": {
            "value": 1,
            "relation": "eq"
        },
        "max_score": 0.39556286,
        "hits": [
            {
                "_index": "my-index-000001",
                "_type": "_doc",
                "_id": "Ujt6aX4BXCJVOiKe7UXr",
                "_score": 0.39556286,
                "_source": {
                    "tags": "Elastic",
                    "keywords": "Elastic",
                    "description": "Elastic search elastic"
                },
                "highlight": {
                    "description": [
                        "<em>Elastic</em> search <em>elastic</em>"
                    ],
                    "tags": [
                        "<em>elastic</em>"
                    ]
                }
            }
        ]
    }
}

```

What I expected for the highlight value on "tags" is "_Elastic_" because I set "force\_source" : true and the tags in \_source is "Elastic".

Please let me know if I misunderstood something or it is a bug.

Many thanks in advance,  
Youngmi

---

<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:** [February 14, 2022, 7:41pm UTC](https://discuss.elastic.co/t/force-source-seems-not-working/294622/2 "2022-02-14T19:41:51Z")

</div>

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