Making multi level index?

how to make multi level index using java API . i need to make a index that
looks like
(example)

{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes"}
}
}
}
How to do this using JAVA API.

What do you mean by multi level index? What you posted is mappings.

On Wed, Jun 13, 2012 at 12:08 PM, Saurabh saurabh.k1510@gmail.com wrote:

how to make multi level index using java API . i need to make a index that
looks like
(example)

{

"tweet" : {
    "properties" : {
        "message" : {"type" : "string", "store" : "yes"}
    }
}

}
How to do this using JAVA API.