Here're the mappings:
{
"discussion" : {
"mappings" : {
"groupMembership" : {
"_parent" : {
"type" : "group"
},
"_routing" : {
"required" : true
},
"properties" : {
"approved" : {
"type" : "boolean",
"store" : true
},
"id" : {
"type" : "string",
"index" : "not_analyzed"
},
"parent" : {
"type" : "string",
"index" : "not_analyzed",
"store" : true
},
"userId" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"group" : {
"properties" : {
"createdDate" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"deletedDate" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"description" : {
"type" : "string"
},
"id" : {
"type" : "string",
"index" : "not_analyzed"
},
"modifiedDate" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"name" : {
"type" : "string",
"store" : true
},
"targetType" : {
"type" : "string"
},
"tenantId" : {
"type" : "string",
"index" : "not_analyzed"
},
"visibility" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"discussion" : {
"_parent" : {
"type" : "group"
},
"_routing" : {
"required" : true
},
"properties" : {
"authorId" : {
"type" : "string",
"index" : "not_analyzed"
},
"createdDate" : {
"type" : "date",
"format" : "date_optional_time"
},
"deletedDate" : {
"type" : "date",
"format" : "date_optional_time"
},
"id" : {
"type" : "string",
"index" : "not_analyzed"
},
"message" : {
"type" : "string"
},
"modifiedDate" : {
"type" : "date",
"format" : "date_optional_time"
},
"parent" : {
"type" : "string",
"index" : "not_analyzed"
},
"subject" : {
"type" : "string",
"fields" : {
"subject.raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"tenantId" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}
}
}
}
And some sample objects:
{
"_index" : "discussion",
"_type" : "group",
"_id" : "7cc810d9-1412-48d0-97bd-830543230624",
"_score" : 1.0,
"_source":{"id":"7cc810d9-1412-48d0-97bd-830543230624","name":"CHAPTER 19. The Prophet.","description":""Shipmates, have ye shipped in that ship?"","visibility":"PUBLIC","targetType":null,"createdDate":1424460745000,"modifiedDate":1424460745000,"deletedDate":null,"tenantId":"18b37386-dd53-496a-82b4-26ef56d4fdf9"}
}, {
"_index" : "discussion",
"_type" : "groupMembership",
"_id" : "f8beda9a-87cd-4783-b369-645aa1fecc8a",
"_score" : 1.0,
"_source":{"id":"f8beda9a-87cd-4783-b369-645aa1fecc8a","userId":"54570d06-44ae-4241-9118-f74ea5345703","parent":"7cc810d9-1412-48d0-97bd-830543230624","approved":true}
}, {
"_index" : "discussion",
"_type" : "groupMembership",
"_id" : "98894b52-c764-4b4b-b737-dc9393a5a6b1",
"_score" : 1.0,
"_source":{"id":"98894b52-c764-4b4b-b737-dc9393a5a6b1","userId":"5c04f5bb-8d75-47bb-87a0-095ea3e05818","parent":"7cc810d9-1412-48d0-97bd-830543230624","approved":true}
}, {
"_index" : "discussion",
"_type" : "groupMembership",
"_id" : "f51b93d8-55d9-4a3c-aa4a-e7c2abcd3bbe",
"_score" : 1.0,
"_source":{"id":"f51b93d8-55d9-4a3c-aa4a-e7c2abcd3bbe","userId":"11cdfd7c-59a4-49a8-b3d9-62c4b49bf761","parent":"7cc810d9-1412-48d0-97bd-830543230624","approved":true}
}, {
"_index" : "discussion",
"_type" : "groupMembership",
"_id" : "145b9ae9-daf4-4de7-8245-74453565744b",
"_score" : 1.0,
"_source":{"id":"145b9ae9-daf4-4de7-8245-74453565744b","userId":"c5c103a3-c7c5-41ec-b1c8-0e4aa6861344","parent":"7cc810d9-1412-48d0-97bd-830543230624","approved":true}
}, {
"_index" : "discussion",
"_type" : "discussion",
"_id" : "af2d431d-b8bc-49cc-87cd-6bbe724ad4b8",
"_score" : 1.0,
"_source":{"id":"af2d431d-b8bc-49cc-87cd-6bbe724ad4b8","authorId":"11cdfd7c-59a4-49a8-b3d9-62c4b49bf761","parent":"7cc810d9-1412-48d0-97bd-830543230624","subject":""Look ye; when Captain Ahab is all right, then this left arm of mine will be all right; not before."","message":""What do you know about him?"","createdDate":1424460748000,"modifiedDate":1424460748000,"deletedDate":null,"tenantId":"18b37386-dd53-496a-82b4-26ef56d4fdf9"}
}, {
"_index" : "discussion",
"_type" : "discussion",
"_id" : "cb9ff3f1-9f27-4567-9625-a15cbfdd9544",
"_score" : 1.0,
"_source":{"id":"cb9ff3f1-9f27-4567-9625-a15cbfdd9544","authorId":"5c04f5bb-8d75-47bb-87a0-095ea3e05818","parent":"7cc810d9-1412-48d0-97bd-830543230624","subject":"said I.","message":""HE'S got enough, though, to make up for all deficiencies of that sort in other chaps," abruptly said the stranger, placing a nervous emphasis upon the word HE.","createdDate":1424460747000,"modifiedDate":1424460747000,"deletedDate":null,"tenantId":"18b37386-dd53-496a-82b4-26ef56d4fdf9"}
}
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/858b2645-510e-4e40-8429-4e0fe7a87a2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.