How to query the elastic search using node js client

I am new to elastic search I tried some queries,can please any one help me to get the unique users for that Audi and bmw keyword.

"query": {
 "bool": {
     "must": [
     {
       "term": {
         "keyword": "Audi"
       }
     },
     {
       "term": {
         "keyword": "BMW"
       }
     },
     {
       "range": {
         "date": {
             "gte": "2019-11-19",
             "lt": "2019-11-29"
         }
       }
     }
   ]
 }
}
}

I need the result like below.
Screenshot_2019-12-02%20Fwd%20Search%20UI%20for%20audience%20builder%20-%20sagar%20wandx%20co%20-%20WandX%20Mail

this is index.
image timeStamp uuid title
1573312002664.29 7d274130-0454-11ea-9510-2b740802bf11 Audi R8
1573312002664.29 7d274130-0454-11ea-9510-2b740802bf11 bmw dynamic
1573025285760.51 7d274130-0454-11ea-9510-2b740802bf11 audi A4
1573025285760.51 7d274130-0454-11ea-9510-2b740802bf11 Audi vs Bmw
1573025285760.51 7d274130-0454-11ea-9510-2b740802bf11 price of BMW 3 series starting price

May be look at Terms Aggregations?

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