I have tried a lot and searched stackoverflow about building queries in JAVA for ES, I think I have basic understanding but still not able to write queries properly. Can someone please explain in detail with several examples, it would be really really awesome guys.
And if you haven't check Falcon Heavy launch video, I think you should do that first 
My Query string ->
GET instagram_2018/_search
{
"_source": [
"message",
"created_time"
],
"query": {
"bool": {
"must": [
{
"match": {
"object_type": "comment"
}
},
{
"wildcard": {
"profile_name": "Some name"
}
},
{
"wildcard": {
"post_id": "*_123456789"
}
}
]
}
},
"sort": [
{
"created_time": {
"order": "desc"
}
}
]
}
Thanks in advance!