Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

After a server restart, my elasticsearch indices aren't working properly. If do I search of data before the system start, everything works just fine. If I insert new data, not a problem. If I search for the new data, referencing the specific id, like this:

curl -XGET myserver:9200/twitter/tweet/12345678

everything is fine. But, if I do

> curl -XGET
> http://myserver:9200/twitter/tweet/_search?analyze_wildcard=true -d'{
>                 "query" : {
>                     "bool" : {
>                         "must" : [
>                             { "term" : {"text": "tweet search here" } },
>                             { "term" : {"place_country_code": "us" } }
>                         ]
>                     }
>                 },
>                 "filter" : {
>                     "range" : {
>                         "created_at" : { "gte" : "20130616 00:00:00"
>                             , "lt" : "20130618 00:00:00" }
>                 }
>                 },
>                 "size" : 5 }'

I get

{
  "took" : 2,
  "timed_out" : false,
  "_shards" : {
    "total" : 5,
    "successful" : 5,
    "failed" : 0
  },
  "hits" : {
    "total" : 0,
    "max_score" : null,
    "hits" : [ ]
  }

I then tried getting the status on the _type with this command: curl -XGET localhost:9200/twitter/tweet/_status?pretty

and I got:

{
  "_index" : "twitter",
  "_type" : "tweet",
  "_id" : "_status",
  "exists" : false
}

So, it's telling me that the _type doesn't exist? In the past, I've just deleted all of the data, and started over, but that's not a very good long term strategy. Does anyone know what's going on or how to fix it?

Thanks in advance!

share|improve this question
    
This is the second time elasticsearch just breaks on me. I'm going to delete and never use it again. What a waste of time and resource. –  maximus Jul 6 '13 at 16:35
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.