Suddenly can't search data


(Martin) #1

Hello,

I have been using Elastic Search for a month and everything works fine. However since February 1 at midnight I can not recover the data that I insert via POST request like "url: 9200/xxx/xxx / _search" (with parameters like :

"filter": {
"range": {
"date": {
"gte": "now-60m"
}
}
}

I am verry noob with ES technology, I can not find my data in Kibana although I can fin it when I use GET request with the specific id like that : "url:9200/xxx/xxx/0XVgY2EBaXEDs4FSiCeZ", do you see my mistake ?

Thanks a lot,

Regards,

Martin


(Makoto Nozawa) #2

Hi,

If you use monthly indices (like "index_201801", "index_201802" ...), maybe you are referring the wrong index.
e.g. Your target data is indexed in "index_201801", but you are referring "index_201802".


(Martin) #3

Hello mnozawa and thank you for your quickly reply,

I think the problem don't come from my indices, the GET request url:9200/_cat/indices?v send me :

health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open binance xxx 5 1 4451592 0 1.4gb 1.4gb
yellow open bittrex xxx 5 1 4683891 0 1.1gb 1.1gb
yellow open .kibana xxx 1 1 4 0 25.9kb 25.9kb
yellow open poloniex xxx 5 1 1761013 0 453.8mb 453.8mb

(When I resend this request I can see that the "docs.count" number increase).


(Martin) #4

I really do not understand,

The POST request : url:9200/binance/binance/_search?size=0

with this parameters :

{
"aggs" : {
"sales_over_time" : {
"date_histogram" : {
"field" : "date",
"interval" : "1D",
"format" : "yyyy-MM-dd"
}
}
}
}

Give me :

https://gist.github.com/MartinRdw/bec7a4a12a31b337e29535908167d339

I have all the dates until February 1st :face_with_raised_eyebrow:


(system) #5

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