Ran same query but gave no result during the second run


(msya) #1

I ran this query two times:

{
"query": {
"field": {
"message": {
"query": "Doug"
}
}
},
"size": 10,
"filter": {
"bool": {
"must": [
{
"and": [
{
"term": {
"userId": 111
}
},
{
"term": {
"groupId": 336
}
},
{
"numeric_range": {
"postedDate": {
"from": "2008-01-01T00:00:00Z",
"to": "2012-09-07T20:51:14Z"
}
}
}
]
}
]
}
}
}

The first time I run it gives the right result. But, the second time I run
it, there are no results returned. I have two nodes running on EC2. Why is
my query giving no results when I search again?

--


(system) #2