Dear Team,
I have query like this
GET logstash-sdc-questionrecords/_search?q=source:website_portal
{
"aggs" : {
"genres" : {
"terms" : {
"field" : "question.keyword",
"order" : { "_count" : "desc" },
"size": 10
},
"aggs" : {
"genres" : {
"terms" : {
"field" : "answer.keyword",
"order" : { "_count" : "desc" },
"size": 10
}
}
}
}
}
}
When we execute the records for the few records only questions is coming and it is not showing up the answer against each question..
In the database we have answers for all the questions.
Please let me know the query to get the both questions and answers for 10 records
Below is the error.