GET index/_search
{
"query": {"terms": {
"id": [ "114383" ]
}}
get the count of this matched data
}
and also get the count of this
GET products/_search
{
"query": {
"match" : {
"inStorage": "true"
}
}
//get count of this data
}
GET index/_search
{
"query": {"terms": {
"id": [ "114383" ]
}}
get the count of this matched data
}
and also get the count of this
GET products/_search
{
"query": {
"match" : {
"inStorage": "true"
}
}
//get count of this data
}
GET /products/_count
{
"query": {
"bool": {
"filter": [
{
"terms": {
"categories.id": ["9"]
}
},
{
"terms": {
"manufacturers.id": ["216"]
}
},
{
"terms": {
"options.id": ["845"]
}
},
{
"term": {
"inStorage.": "true"
}
}
]
}
}
}
thank you but is it possible to filter terms with term?
yes.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.