# Nested\_path deprecated

**URL:** <https://discuss.elastic.co/t/nested-path-deprecated/156639>\
**Category:** Elasticsearch\
**Created:** [November 14, 2018, 11:16am UTC](https://discuss.elastic.co/t/nested-path-deprecated/156639 "2018-11-14T11:16:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumpelblase](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumpelblase/32/35709_2.png) [@kumpelblase](https://discuss.elastic.co/u/kumpelblase)\
**Post date:** [November 14, 2018, 11:16am UTC](https://discuss.elastic.co/t/nested-path-deprecated/156639/1 "2018-11-14T11:16:18Z")

</div>

I have a query which does its job, but at the top of the result I get this message: `#! Deprecation: [nested_path] has been deprecated in favor of the [nested] parameter`.  
My query looks like this:

```
GET ticket/_search
{
  "query": {
    "match_all": {}
  },
  "size": 1,
  "_source": ["TTS_Nummer", "Historie.TTH_DatumZeit"], 
  "sort": [
    {
      "Historie.TTH_DatumZeit": {
        "order": "desc",
        "nested_path": "Historie",
        "mode": "max"
      }
    }
  ]
}

```

I know that the message means that I shouldn't use `nested_path`, but what parameter am I supposed to use? Or does the problem even matter?

---

<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 12, 2018, 11:16am UTC](https://discuss.elastic.co/t/nested-path-deprecated/156639/2 "2018-12-12T11:16:23Z")

</div>

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