I'm using a python script to populate data to elasticsearch using pandas to transform the data before the population.
I was creating columns on pandas using dotted notation expecting that the elasticsearch index process wold transform the dotted notation into JSON dictionary, but it seems the fields are contained as individual fields on the _source
called by the same dotted notation.
Example: I have the following on python
{
"user.name": "Username",
"user.email": "email@domain.com"
}
and I was expecting the index process to transform it to
{
"user": {
"name": "Username",
"email": "email@domain.com"
}
Is there any real difference having individual dotted fields or nested dictionaries on _source
?