Multi Level nested search by using NEST API

2015-02-19 Thread Xinli Shang
I am having trouble to make multi level nested query by using NEST API.
Here is my mapping.

{
  "log": {
"mappings":{
  "LogEvent": {
   "properties":{

"@timestamp":{"type":"date","store":true,"format":"-MM-dd'T'HH:mm:ss"},
"records":
{"type":"nested","properties":{

"eventtype" : {"type":"string","store":true},

"detail":{"type":"string","store":true},

"others":{

"type":"nested","properties":{

"ScrubbedContent":{"type":"string","store":true},

"RawContent":{"type":"string","store":true}

}

}
 }   } }
}
}

And here is the query that works

{
  "from": 0,
  "size": 1,
  "query": {
"filtered": {
  "filter": {
"and": {
  "filters": [
{
  "range": {
"@timestamp": {
  "gte": "2015-02-12T02:37:32",
  "lte": "2015-02-19T02:37:32"
}
  }
},
{
  "nested": {
"filter": {
  "terms": {
"records.eventtype": "myeventtype"
  }
},
"path": "records"
  }
}
  ]
}
  }
}
  }
}

But if I change "path": "records" to "path": "records.*others*", no result
returned. I am pretty sure I should have results for it.

Any thought why?

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAHsnNRjY8dLpzd260Pg6rkoAHVKvZWwC9OZS%3DUinpaoXTJU6Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


_timestamp doesn't work in kibana even enabled in the mapping

2014-12-06 Thread Xinli Shang
I enabled _timestamp  in the mapping as below. I also queried the mapping
back and confirmed it is set like below.

"_timestamp" : { "enabled" : true,"store" : "yes"},

But in Kibana, the timefilter which relies on the _timestamp doesn't work.
In the _source, I don't see _timpstamp is automatically created for each
document.

Any idea where is wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAHsnNRgw8uUH6CHNmUZ6jyrb2XFxUnu4rUQojg1AXA1G2zXbbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Reliability of ElasticSearch

2014-12-01 Thread Xinli Shang
I am new to ElasticSearch and asked to design ElasticSearch for log search.
One of the big requirement is availability > 99.9%. If you have designed
elastic search, could you please share your top 3 lessons that you learn to
make elastic search highly available?

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAHsnNRh-qPc1Q1j%3DCxY6zh8e7UQ4j%2B8Oj5E4mir5TPC_1Ly0%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.