I don't know the proper way to format JSON requests to search all indices in ES. When I run:
GET _search?q=dog&size=0
I get 270 hits, but when I run:
GET _search
{
"query": {
"match": {
"about" :"dog"
}
}
}
I get no hits. What is the correct way to make this query return the number of hits?
If I would like to get a breakdown on the hit count for each index (the number of documents containing 'dog' in each index), how could I nest an aggregation to do this?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.