Hi, I created my index using this mapping JSON:

{
    "myidx": {
        "index.refresh_interval":"5m",
        "mappings": {
            "dynamic": "strict",
            "message": {
                "_ttl": {
                    "enabled": true
                },
                "properties": {
                    "my_nested_thing": {
                        "type": "nested",
                        "properties": {
                            "some_id": {
                                "type": "string", "index": "not_analyzed"
                            },
                            "count": {
                                "type": "long"
                            },
                        }
                    }
                }
            }
        }
    }
}

If I do a GET to _mapping after indexing some documents, it will 
essentially return:

        {
            "message": {
                "properties": {
                    "my_nested_thing": {
                        "properties": {
                            "some_id": {
                                "type": "string", "index": "not_analyzed"
                            },
                            "count": {
                                "type": "long"
                            },
                        }
                    }
                }
            }
        }

I.e. "_ttl": enabled=true and the "type": "nested" is not present from the 
mapping. I also noticed that it allows auto update to the mapping despite 
the "dynamic": "strict" instruction.

Does this mean these instructions are somehow not being reflected? If so, 
what am I doing wrong?

I'm using version 1.2.1







-- 
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/b57199bf-c01f-4b86-9d8d-a4acfb06618c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to