a sample usage of count API : curl -XGET 'http://localhost:9200/_count' -d
'{"term" : { "lang": "en", "country": "Egypt" }}'
it'll return count of pages based on that term --->
{"count":104628,"_shards":{"total":10,"successful":10,"failed":0}} .
*the question is *: does count API support searching by multiple TERMs and
return multiple COUNTs ?
something like :
curl -XGET 'http://localhost:9200/_count' -d
'{
"term": [
{
"lang": "en",
"country": "Egypt"
},
{
"lang": "ar",
"country": "Egypt"
}
]
}'
and the result would be :
[
{"count":104628,"_shards":{"total":10,"successful":10,"failed":0}}, {"count":2000,"_shards":{"total":10,"successful":10,"failed":0}}
]
I want to get count of pages based on multiple* terms* .
a sample usage of count API : curl -XGET 'http://localhost:9200/_count' -d
'{"term" : { "lang": "en", "country": "Egypt" }}'
it'll return count of pages based on that term --->
{"count":104628,"_shards":{"total":10,"successful":10,"failed":0}} .
the question is : does count API support searching by multiple TERMs and
return multiple COUNTs ?
something like :
curl -XGET 'http://localhost:9200/_count' -d
'{
"term": [
{
"lang": "en",
"country": "Egypt"
},
{
"lang": "ar",
"country": "Egypt"
}
]
}'
and the result would be :
[ {"count":104628,"_shards":{"total":10,"successful":10,"failed":0}},
{"count":2000,"_shards":{"total":10,"successful":10,"failed":0}} ]
I want to get count of pages based on multiple terms .
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.