>
> must be _default_, not _default as shown in your default-mapping.json
>
Ahhh...good catch. That was a typo. However, after fixing that typo, the
problem remains.
The aggs search result is the following:
{
took: 36
timed_out: false
_shards: {
total: 1
successful: 1
failed: 0
}
hits: {
total: 1
max_score: 0
hits: [ ]
}
aggregations: {
foo: {
buckets: [
{
key: elasticsearch
doc_count: 1
}
{
key: rule
doc_count: 1
}
]
}
}
}
My revised default-mapping.json is the following (I also changed an
analyzer):
{
"_default_": {
"properties": {
"foo": {
"type": "nested",
"include_in_all": false,
"properties": {
"bar": {
"type": "string",
"index": "not_analyzed",
"include_in_all": false,
"fields": {
"lower": {
"analyzer": "standard",
"type": "string"
}
}
}
}
}
}
}
}
The resulting metadata is the following:
{
state: open
settings: {
index: {
uuid: S2hmo2d3SGWFP51PXs6XbA
number_of_replicas: 0
number_of_shards: 1
version: {
created: 1000199
}
}
}
mappings: {
foobar: {
properties: {
foo: {
include_in_all: false
properties: {
bar: {
include_in_all: false
index: not_analyzed
type: string
fields: {
lower: {
analyzer: standard
type: string
}
}
}
}
type: nested
}
}
}
}
aliases: [ ]
}
So, is this a bug?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e0dac3e7-d825-41d8-bb35-ab33ef8c7290%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.