i have some documents in elasticsearch that i need to query. here is my mapping
{
"mappings": {
"Daily": {
"properties": {
"campaignID":{
"type":"long"
},
"accountID":{
"type":"long"
}
}
}
}
}
here is one of my doc:
{
"Website Registrations Completed": 0,
"3-Second Video Views": 0,
"Photo Views": 0,
"Website Adds to Wishlist": 0,
"Objective": "CONVERSIONS",
"Website Checkouts Initiated": 0,
"Clicks": 1091,
"Social Impressions": 36502,
"campaignID": 31842593123459132,
"Reach": 69745,
"Website Searches": 0,
"Website Leads": 0,
"Website Adds to Cart": 6,
"accountID": 9837295319561761,
"Page Likes": 72,
"Cpm": 46.657440197555,
"Ctr": 1.4803055589476002
}
and here is my query:
{
"query": {
"bool": {
"must": [
{
"term": {
"accountID": "9837295319561761"
}
}
]
}
}
}
this should work as but it gives empty output???why is this happening.( i know i can just use a term query directly for the above query but this was actually a part of bigger query).
i tried with with this:
{
"query": {
"term": {
"accountID": "1007295319405768"
}
}
}