# Unexpected docvalues type NONE for field '\_parent'

**URL:** https://discuss.elastic.co/t/unexpected-docvalues-type-none-for-field--parent/86518
**Category:** Elasticsearch
**Created:** [May 20, 2017, 8:23am UTC](https://discuss.elastic.co/t/unexpected-docvalues-type-none-for-field--parent/86518 "2017-05-20T08:23:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)
#### Post date: [May 20, 2017, 8:23am UTC](https://discuss.elastic.co/t/unexpected-docvalues-type-none-for-field--parent/86518/1 "2017-05-20T08:23:47Z")

</div>

Hi,

I am migrating to Elastic Search 5.2.2 from 2.3.1, we have successfully migrated index from 2.3.1 to 5.2.2 through Snapshot and Restore.

When I am trying to update Index on 5.2.2 with updated data I am getting following error:

* * *

failed to index documents because of : |#]  
Failed to execute phase [query], all shards failed; shardFailures {[ZFNfzGaFQ0adNxn7v389bw][idx\_1494326457350][0]: RemoteTransportException[[xxxx4][1.0.0.24:3457][indices:data/read/search[phase/query]]]; nested: QueryPhaseExecutionException[Query Failed [Failed to execute main query]]; nested: IllegalStateException[unexpected docvalues type NONE for field '\_parent' (expected one of [SORTED, SORTED\_SET]). Re-index with correct docvalues type.]; }

{[TXNUeKB-SbqbiT7exb8jZQ][idx\_1494326457350][1]: RemoteTransportException[[xxxx3][1.0.0.25:3457][indices:data/read/search[phase/query]]]; nested: QueryPhaseExecutionException[Query Failed [Failed to execute main query]]; nested: IllegalStateException[unexpected docvalues type NONE for field '\_parent' (expected one of [SORTED, SORTED\_SET]). Re-index with correct docvalues type.]; }

* * *

Not able to figure out if its able to read Index or there is issue with "docvalues type NONE for field"

Thanks,  
Amit Sinha.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 20, 2017, 8:36am UTC](https://discuss.elastic.co/t/unexpected-docvalues-type-none-for-field--parent/86518/2 "2017-05-20T08:36:07Z")

</div>

There were changes to parent/child between 2.X and 5.X including moving the P/C relationships to doc values.

Did you run the migration checker?

---

<div class="post-metadata">

### Author: ![Shruti\_K](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Shruti\_K](https://discuss.elastic.co/u/Shruti_K)
#### Post date: [May 20, 2017, 10:38am UTC](https://discuss.elastic.co/t/unexpected-docvalues-type-none-for-field--parent/86518/3 "2017-05-20T10:38:00Z")

</div>

Can you refer me the specific doc about P/C relationship between 2.x to 5.x here because I could not find it?

---

<div class="post-metadata">

### Author: ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)
#### Post date: [May 22, 2017, 7:46pm UTC](https://discuss.elastic.co/t/unexpected-docvalues-type-none-for-field--parent/86518/4 "2017-05-22T19:46:42Z")

</div>

Thanks for response.  
I Ran Migration Checker on 2.3.1: Following are output.

Plugins : Green  
Cluster Settings: Green  
Node Settings : Green  
Cluster Checkup: Blue  
Indices

- xxx\_es\_idx\_1494326457350  
Mappings  
Parent field no longer accessible in queries  
[part]:\_parent

Reindex Helper :  
No indices exist which require reindexing.

---

<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: [June 19, 2017, 7:46pm UTC](https://discuss.elastic.co/t/unexpected-docvalues-type-none-for-field--parent/86518/5 "2017-06-19T19:46:42Z")

</div>

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