Define a dynamic field in a non-dynamic object

Hi,

As explained herehttp://www.elasticsearch.org/guide/reference/mapping/object-type.html an
object can be dynamic.

The example shows an object with the default value for dynamic (true), and
disabling dynamic for a specific field ("name"). I want to do the opposite:
I wand my object to be "not dynamic", but I want a specific field to be
dynamic. I have defined the following mapping for that, but it is not
working. Any idea why?

{
"dynamic": "false",
"properties": {
"org_id": {
"index": "analyzed",
"store": "yes",
"type": "integer"
},
"properties": {
"properties": {
"keywordmap": {
"dynamic": "true",
"store": "yes",
"type": "string"
},
"locator": {
"store": "yes",
"type": "string"
},
"multilocator": {
"store": "yes",
"type": "string"
}
}
},
"type": {
"store": "yes",
"type": "string"
}
}
}

Thanks,
Daniel Gonzalez

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

To make it clear, the field I want to be dynamic is properties.keywordmap.

(unfortunately we are using "properties" too in our data model, so that
this gets a bit confusing when configuring the ES mappings)

On Friday, March 8, 2013 4:50:07 PM UTC+1, Daniel Gonzalez wrote:

Hi,

As explained herehttp://www.elasticsearch.org/guide/reference/mapping/object-type.html an
object can be dynamic.

The example shows an object with the default value for dynamic (true), and
disabling dynamic for a specific field ("name"). I want to do the opposite:
I wand my object to be "not dynamic", but I want a specific field to be
dynamic. I have defined the following mapping for that, but it is not
working. Any idea why?

{
"dynamic": "false",
"properties": {
"org_id": {
"index": "analyzed",
"store": "yes",
"type": "integer"
},
"properties": {
"properties": {
"keywordmap": {
"dynamic": "true",
"store": "yes",
"type": "string"
},
"locator": {
"store": "yes",
"type": "string"
},
"multilocator": {
"store": "yes",
"type": "string"
}
}
},
"type": {
"store": "yes",
"type": "string"
}
}
}

Thanks,
Daniel Gonzalez

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

On Fri, 2013-03-08 at 07:52 -0800, Daniel Gonzalez wrote:

To make it clear, the field I want to be dynamic is
properties.keywordmap.

Only objects can be dynamic. keywordmap is a string

clint

(unfortunately we are using "properties" too in our data model, so
that this gets a bit confusing when configuring the ES mappings)

On Friday, March 8, 2013 4:50:07 PM UTC+1, Daniel Gonzalez wrote:
Hi,

    As explained here an object can be dynamic.
    
    
    The example shows an object with the default value for dynamic
    (true), and disabling dynamic for a specific field ("name"). I
    want to do the opposite: I wand my object to be "not dynamic",
    but I want a specific field to be dynamic. I have defined the
    following mapping for that, but it is not working. Any idea
    why?
    
    
    {
        "dynamic": "false",
        "properties": {
            "org_id": {
                "index": "analyzed",
                "store": "yes",
                "type": "integer"
            },
            "properties": {
                "properties": {
                    "keywordmap": {
                        "dynamic": "true",
                        "store": "yes",
                        "type": "string"
                    },
                    "locator": {
                        "store": "yes",
                        "type": "string"
                    },
                    "multilocator": {
                        "store": "yes",
                        "type": "string"
                    }
                }
            },
            "type": {
                "store": "yes",
                "type": "string"
            }
        }
    }
    
    
    Thanks,
    Daniel Gonzalez

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.