# Scroll query does not accept "field paths"

**URL:** <https://discuss.elastic.co/t/scroll-query-does-not-accept-field-paths/39337>\
**Category:** Elasticsearch\
**Created:** [January 15, 2016, 3:10pm UTC](https://discuss.elastic.co/t/scroll-query-does-not-accept-field-paths/39337 "2016-01-15T15:10:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrely](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@andrely](https://discuss.elastic.co/u/andrely)\
**Post date:** [January 15, 2016, 3:10pm UTC](https://discuss.elastic.co/t/scroll-query-does-not-accept-field-paths/39337/1 "2016-01-15T15:10:25Z")

</div>

Ayup, I got a terms search query/filter that works ok:

```
localhost:9200/current-records/_search/
{ "query": {
    "bool": {
        "must": {
            "query": {
               "match_all": {}
            }
        },
        "filter": {
            "terms": {
                "object.isVersionOf.resId": ["ba", "foo"]
            }
        }
    }
}}

```

The field of course does not have a dot in it but is "embedded"

```
{
  "current-records": {
    "mappings": {
      "record": {
        "properties": {
          "object": {
            "properties": {
             "isVersionOf": {
                "properties": {
                  "resId": {
                    "type": "string",
                    "index": "not_analyzed"
                  }
                }
              }
           }
        }
    }
  }        
}

```

But asking for a scroll with the same query throws an error:

```
localhost:9200/current-records/_search/scroll=10m
{
    ... same as previous query ....
}

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Field name [object.isVersionOf.resId] cannot contain '.'"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Field name [object.isVersionOf.resId] cannot contain '.'"
  },
  "status": 400
}

```

Is this the intended behaviour? I would expect to be able to scroll any valid query.

Kind regards

-andré

---

<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 5, 2017, 11:24pm UTC](https://discuss.elastic.co/t/scroll-query-does-not-accept-field-paths/39337/2 "2017-07-05T23:24:04Z")

</div>

Closed on July 5, 2017, 11:24pm UTC


