ES 1.4.0 / Mapping is changed after first index

Hello,

I have some strange behavior here.

I have an Index called webanalytics.
There is one type called MesuresVisitoratHeure. Here is the mapping :

{
"webanalytics": {
"mappings": {
"MesuresVisitoratHeure": {
"_ttl": {
"enabled": true,
"default": 31536000000
},
"properties": {
"OperationCode": {
"type": "string"
},
"Source": {
"type": "string"
},
"application": {
"type": "string"
},
"country": {
"type": "string"
},
"nbPagesVues": {
"type": "long"
},
"nbVisites": {
"type": "long"
},
"nbVisitesARebond": {
"type": "long"
},
"nbVisiteurs": {
"type": "long"
},
"page": {
"type": "string"
},
"support": {
"type": "string"
},
"tempsPassePages": {
"type": "float"
},
"tempsPasseVisites": {
"type": "float"
},
"timeStamp": {
"type": "date",
"format": "dateOptionalTime"
},
"typePage": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}

This index/type already contains documents.

I now want to add another type in the same index
called MesuresVisitoratJours with the same mapping expect that this one :

  • have 2 mores properties
  • does not need ttl
  • I also wanted to make more properties not_analysed

After creating the mapping and indexing some documents, I get errors about
mismatch types when I make some search/aggregate query.

So, I tried to create mapping based on the first old type. Here is what I
put to create the mapping :

{
"MesuresVisitoratJours": {
"_ttl": {
"enabled": true,
"default": 31536000000
},
"properties": {
"OperationCode": {
"type": "string"
},
"Source": {
"type": "string"
},
"application": {
"type": "string"
},
"country": {
"type": "string"
},
"nbPagesVues": {
"type": "long"
},
"nbVisites": {
"type": "long"
},
"nbVisitesARebond": {
"type": "long"
},
"nbVisiteurs": {
"type": "long"
},
"page": {
"type": "string"
},
"support": {
"type": "string"
},
"tempsPassePages": {
"type": "float"
},
"tempsPasseVisites": {
"type": "float"
},
"timeStamp": {
"type": "date",
"format": "dateOptionalTime"
},
"typePage": {
"type": "string",
"index": "not_analyzed"
},
"nbClicBandeauVentesOuvertes": {
"type": "long"
},
"nbChargements": {
"type": "long"
}
}
}
}

Here, if I get the _mapping, everything is ok. They are identical.
Then I reindex documents I want. But I keep getting errors on
search/aggration.
And, when I get the _mapping, here is what I have now :

{
"webanalytics": {
"mappings": {
"MesuresVisitoratJours": {
"properties": {
"Source": {
"type": "string"
},
"application": {
"type": "string"
},
"country": {
"type": "string"
},
"nbChargements": {
"type": "long"
},
"nbClicBandeauVentesOuvertes": {
"type": "long"
},
"nbPagesVues": {
"type": "long"
},
"nbVisites": {
"type": "long"
},
"nbVisitesARebond": {
"type": "long"
},
"nbVisiteurs": {
"type": "long"
},
"page": {
"type": "string"
},
"support": {
"type": "string"
},
"tempsPassePages": {
"type": "double"
},
"tempsPasseVisites": {
"type": "double"
},
"timeStamp": {
"type": "date",
"format": "dateOptionalTime"
},
"typePage": {
"type": "string"
}
}
}
}
}
}

Notice that TTL disapeared, float became double and "not_analysed" disapear
too.

I really don't understand what is happening.
Can you please provide me some helps ?

Thank you.
Alek

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/70dc07f3-ea45-4589-a319-148b54224c1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello again,

As no reply was made, I decided to reindex all datas last friday.
Everything was fine until now. A float type became long I don't know how.

Is there someone that can help me investigate ?

Thank you.
Alek

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/59d58245-880d-4239-87ce-326133167ca3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.