Hey Jim, sorry for the delay. I'm adding a simple data structure that I'm trying to do this with so you can create it in your environment.
I just want to use ii in Kibana, no other dashboard involved.
I don't really mind changing my data structure at all this just seemed to be the right way of doing it. Let me know if you need more information. Thank you for your help
PUT library
{
"mappings": {
"books": {
"_all": {"enabled": false},
"properties":{
"title":{"type": "string"},
"name":{
"type":"nested",
"properties":{
"first":{"type":"string"},
"last":{"type":"string"}
}
},
"publish_date":{"type":"date"},
"price":{"type":"string"}
}
},
"reviews":{
"_parent": {
"type": "books"
},
"properties": {
"points":{"type":"integer"},
"reviedate":{"type":"date"}
}
}
}
}
PUT /library/books/1
{
"title": "A Fly On The Wall",
"name" : {
"first":"James",
"last":"Sanders"
},
"publish_date":"2015-06-21T23:39:49-0400",
"price": "19.19"
}
PUT /library/books/2
{
"title": "A New World",
"name" : {
"first":"Sandra",
"last":"Jones"
},
"publish_date":"2015-06-21T23:39:49-0400",
"price": "21.19"
}
PUT /library/reviews/1?parent=1
{
"points" : 6,
"reviedate" : "2015-06-21T23:39:49-0400"
}
PUT /library/reviews/2?parent=1
{
"points" : 4,
"reviedate" : "2015-06-22T23:39:49-0400"
}
PUT /library/reviews/3?parent=1
{
"points" : 9,
"reviedate" : "2015-06-23T23:39:49-0400"
}
PUT /library/reviews/4?parent=2
{
"points" : 5,
"reviedate" : "2015-06-21T23:39:49-0400"
}
PUT /library/reviews/5?parent=2
{
"points" : 7,
"reviedate" : "2015-06-22T23:39:49-0400"
}