Devtools show all content docs on the index blogs

Hello,

i try to do the paractice exam of Elasticsearch, i have a task wich is:

Find the number of unique authors for each calendar year of blogs on cluster1 with the phrase "open source" in that order in the content field. Use the authors.uid field to find unique authors. Do not return any hits.

on devtools the result is:

GET blogs/_search
 {
   "size": 0,
   "query": {
     "match_phrase": {
       "content": "open source"
     }
   },
 "aggs": {
   "yearly": {
     "date_histogram": {
       "field": "publish_date",
       "calendar_interval": "year"
     },
     "aggs": {
       "unique_authors": {
         "cardinality": {
           "field": "authors.uid.keyword"
         }
       }
     }
   }
 }
}

but i don't know when i run on devtools for have all content of the index blogs, i don't receive some date of 2010, 2011 but when i run at the top i have result with each year, i run :

GET blogs/_search
{
  "query": {
    "match_all": {}
  }
}

how to see all the query of the table blogs, i am a noob on Elasticsearch

thanks for your reponse

Hi, @Glardz

What is your intended output?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.