{index_name}/{shard_id}/_state directory is missing and {index_name}/{shard_id}/index directory is empty (all index files are gone) after a few nodes were restarted at the same time

2015-05-22 Thread Lee Chuen Ooi
Hi, I am using ElasticSearch version 1.5.0. Our ElasticSearch cluster has 8 shards with 1 replica, hosted on 7 data nodes + 1 master node with setting below: gateway.recover_after_nodes: 4 gateway.recover_after_time: 5m gateway.expected_nodes: 6 After a few nodes were restarted at the same

Data loss after servers hosting the Primary shard and Replica shard were rebooted at the same time

2015-05-14 Thread Lee Chuen Ooi
Hi, I am using ElasticSearch version 1.5.0, running on Windows OS. ElasticSearch cluster has 8 shards with 1 replica, hosted on 6 data nodes +3 master nodes. 2 of the data nodes were rebooted at the same time. One of them was hosting 6P (primary of the 6th shard). The other one was hosting 6R

Re: Why _timestamp field is not returned with the format that we have set in the mapping?

2015-03-25 Thread Lee Chuen Ooi
} On Wednesday, March 25, 2015 at 2:39:06 PM UTC+8, Mark Walkom wrote: ES stores timestamps as unix epoch under the hood, however it will translate that to UTC when you request it. On 25 March 2015 at 15:47, Lee Chuen Ooi leec...@gmail.com javascript: wrote: Hi, I want to make use

Why _timestamp field is not returned with the format that we have set in the mapping?

2015-03-24 Thread Lee Chuen Ooi
Hi, I want to make use of the _timestamp field to keep track the last indexed datetime of an doc in ElasticSearch. I have set the mapping as below: mappings: { _default_: { _timestamp: { enabled: true, store: true, format:

Re: Script - how to round up Float to 2 decimal point?

2015-02-13 Thread Lee Chuen Ooi
Hi David, Yeah, it works. Thanks. On Monday, February 2, 2015 at 2:14:24 PM UTC+8, David Pilato wrote: I guess something like this: Math.round(7.8151*1000)/1000.0 -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 2 févr. 2015 à 04:03, Lee Chuen Ooi leec

Re: Script - how to round up Float to 2 decimal point?

2015-02-01 Thread Lee Chuen Ooi
- It returns 7.82 Math.round(7.8151*100.000)/100.000 - It returns 7.82 On Saturday, January 31, 2015 at 4:27:28 PM UTC+8, David Pilato wrote: And this? Math.round(doc['totals.tax'].value * 100.0)/100.0 David Le 31 janv. 2015 à 09:19, Lee Chuen Ooi leec...@gmail.com javascript: a écrit

Re: Script - how to round up Float to 2 decimal point?

2015-01-31 Thread Lee Chuen Ooi
. Math.round(x * 100) / 100 David Le 31 janv. 2015 à 04:06, Lee Chuen Ooi leec...@gmail.com javascript: a écrit : Hi, Each doc has : - field1 float datatype. For e.g., 99. - field2 float datatype. For e.g., 7.991 - field3 float datatype. For eg., 7.5007500800 - field4

Script - how to round up Float to 2 decimal point?

2015-01-30 Thread Lee Chuen Ooi
Hi, Each doc has : - field1 float datatype. For e.g., 99. - field2 float datatype. For e.g., 7.991 - field3 float datatype. For eg., 7.5007500800 - field4 float with 2 decimal points. For e.g. 8.10 I need to search doc by filtering out the result of the steps below: 1.