# Mapping differences between ES 1.7.3 and 2.0.0

**URL:** <https://discuss.elastic.co/t/mapping-differences-between-es-1-7-3-and-2-0-0/35415>\
**Category:** Elasticsearch\
**Created:** [November 24, 2015, 9:41am UTC](https://discuss.elastic.co/t/mapping-differences-between-es-1-7-3-and-2-0-0/35415 "2015-11-24T09:41:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cterron](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@cterron](https://discuss.elastic.co/u/cterron)\
**Post date:** [November 24, 2015, 9:41am UTC](https://discuss.elastic.co/t/mapping-differences-between-es-1-7-3-and-2-0-0/35415/1 "2015-11-24T09:41:52Z")

</div>

I'm testing some queries in ES 2.0.0 to migrate a service running in 1.7.3. I have seen this behaviour in 2.0 If I create an index with this mapping in an 1.7.3 instance  
\> {  
\> "mensaje": {  
\> "properties": {  
\> "asunto": {  
\> "type": "string"  
\> },  
\> "mensaje":{  
\> "properties": {  
\> "titulo":{  
\> "type": "string"  
\> }  
\> }  
\> }  
\> }  
\> }  
\> }

I upload these data to the index with the bulk interface  
{ "index": {"\_index": "testmap", "\_type": "mensaje", "\_id": "1"}}  
{"mensaje": {"titulo": "uno"}}  
{ "index": {"\_index": "testmap", "\_type": "mensaje", "\_id": "2"}}  
{"mensaje": {"titulo": "dos"}}  
{ "index": {"\_index": "testmap", "\_type": "mensaje", "\_id": "3"}}  
{"mensaje": {"titulo": "tres"}}  
{ "index": {"\_index": "testmap", "\_type": "mensaje", "\_id": "4"}}  
{"mensaje": {"titulo": "cuatro"}}

And make this query against the Index

> {  
> "query":{  
> "bool": {  
> "must": {  
> "term": {  
> "titulo":"uno"  
> }  
> }  
> }  
> }  
> }

Well, this query returns data in an 1.7.3 instance but returns nothing in a 2.0.0 instance. Looking for info, I have read that the mapping has been refactored in ES 2.0 , [The Great Mapping Refactoring](https://www.elastic.co/blog/great-mapping-refactoring), and the previous query works with:

> {  
> "query":{  
> "bool": {  
> "must": {  
> "term": {  
> "mensaje.titulo":"uno"  
> }  
> }  
> }  
> }  
> }  
> Is it necessary to qualify all fields in the map with a mapping like this. Is there any configuration parameter I can use to have the old behaviour?

---

<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:36pm UTC](https://discuss.elastic.co/t/mapping-differences-between-es-1-7-3-and-2-0-0/35415/2 "2017-07-05T23:36:23Z")

</div>


