I am trying to apply a dynamic template mapping to all fields of an object
including the aggregated objects, but it gets only applied to the fields of
the root object:
You set the mapping wrongly, you set the _mapping on the data mapping, but
then specify default there. Here is a gist for both options, either
directly on data, or setting it in a generic fashion on default: explicit data mapping · GitHub.
I am trying to apply a dynamic template mapping to all fields of an object
including the aggregated objects, but it gets only applied to the fields of
the root object:
On Saturday, June 9, 2012 12:02:31 AM UTC+2, kimchy wrote:
You set the mapping wrongly, you set the _mapping on the data mapping, but
then specify default there. Here is a gist for both options, either
directly on data, or setting it in a generic fashion on default: explicit data mapping · GitHub.
I am trying to apply a dynamic template mapping to all fields of an
object including the aggregated objects, but it gets only applied to the
fields of the root object:
On Saturday, June 9, 2012 12:02:31 AM UTC+2, kimchy wrote:
You set the mapping wrongly, you set the _mapping on the data mapping, but
then specify default there. Here is a gist for both options, either
directly on data, or setting it in a generic fashion on default: explicit data mapping · GitHub.
On Saturday, June 9, 2012 12:02:31 AM UTC+2, kimchy wrote:
You set the mapping wrongly, you set the _mapping on the data mapping,
but then specify default there. Here is a gist for both options, either
directly on data, or setting it in a generic fashion on default: https://gist.**github.com/2898285https://gist.github.com/2898285.
I tried that as well, it doesnt make a difference. There most be something
wrong in the configuration which i cannot see. I updated the gist including
the server responses https://gist.github.com/2922822
I do get results for
{
"query" : {
"term" : { "name.untouched": "michael" }
}
}
In your example, untouched company name is indexed as
"company.name.name.untouched" not as "company.name.untouched". Try deleting
your mapping and recreating it like this:
On Friday, June 15, 2012 4:13:28 AM UTC-4, Michael Kleen wrote:
I tried that as well, it doesnt make a difference. There most be something
wrong in the configuration which i cannot see. I updated the gist including
the server responses https://gist.github.com/2922822
I do get results for
{
"query" : {
"term" : { "name.untouched": "michael" }
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.