I needed to create relationship between documents for join type querying.
Basic mapping:
{
"mappings": {
"type1":{
"properties": {
"type2": {
"type": "nested"
},
"type3": {
"type": "nested"
},
"type4": {
"type": "nested"
}
}
}
}
}
and also can i use the search bar in discover to run an elasticsearch query that contains nested keyword:
"query": {
"nested" : {
"path" : "type2",
"query" : {
"bool" : {
"must" : ...
}
}
}
}
Edit: formatting