How to create nested mapping using Java API?

PUT /Test1
{
    "mappings": {
        "Testing1" : {
            "properties" : {
                "Tags" : {
                    "type" : "nested"
                }
            }
        }
    }
}

How to do this using JAVA API?

Something like:

https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indices.html#java-admin-indices-create-index

Then

https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indices.html#java-admin-indices-put-mapping

Thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.