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.
this is index.
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