Not sure what I'm doing wrong, but I couldn't find a way to store my docs
with timestamps as seconds since the Unix epoch and query them properly. I
have my date/time field mapped like this:
"start_time": {"type": "date" },
I store documents like this:
{ "start_time": 1427631731, ... }
And get no result when I do a range query like this:
Of course I left a typo in my email: I do use the same field name across
mapping def, docs and queries, and it does not work.
JM
On Sun, Mar 29, 2015 at 4:17 PM, Jean Marc Saffroy jm@scality.com wrote:
Hi all,
Not sure what I'm doing wrong, but I couldn't find a way to store my docs
with timestamps as seconds since the Unix epoch and query them properly. I
have my date/time field mapped like this:
"start_time": {"type": "date" },
I store documents like this:
{ "start_time": 1427631731, ... }
And get no result when I do a range query like this:
Here is a curl recreation, hopefully that will be clearer:
JM
On Sun, Mar 29, 2015 at 4:18 PM, Jean Marc Saffroy jm@scality.com wrote:
Of course I left a typo in my email: I do use the same field name across
mapping def, docs and queries, and it does not work.
JM
On Sun, Mar 29, 2015 at 4:17 PM, Jean Marc Saffroy jm@scality.com wrote:
Hi all,
Not sure what I'm doing wrong, but I couldn't find a way to store my docs
with timestamps as seconds since the Unix epoch and query them properly. I
have my date/time field mapped like this:
"start_time": {"type": "date" },
I store documents like this:
{ "start_time": 1427631731, ... }
And get no result when I do a range query like this:
On Sun, Mar 29, 2015 at 4:18 PM, Jean Marc Saffroy jm@scality.com wrote:
Of course I left a typo in my email: I do use the same field name across
mapping def, docs and queries, and it does not work.
JM
On Sun, Mar 29, 2015 at 4:17 PM, Jean Marc Saffroy jm@scality.com
wrote:
Hi all,
Not sure what I'm doing wrong, but I couldn't find a way to store my
docs with timestamps as seconds since the Unix epoch and query them
properly. I have my date/time field mapped like this:
"start_time": {"type": "date" },
I store documents like this:
{ "start_time": 1427631731, ... }
And get no result when I do a range query like this:
On Sun, Mar 29, 2015 at 4:18 PM, Jean Marc Saffroy jm@scality.com
wrote:
Of course I left a typo in my email: I do use the same field name across
mapping def, docs and queries, and it does not work.
JM
On Sun, Mar 29, 2015 at 4:17 PM, Jean Marc Saffroy jm@scality.com
wrote:
Hi all,
Not sure what I'm doing wrong, but I couldn't find a way to store my
docs with timestamps as seconds since the Unix epoch and query them
properly. I have my date/time field mapped like this:
"start_time": {"type": "date" },
I store documents like this:
{ "start_time": 1427631731, ... }
And get no result when I do a range query like this:
On Sun, Mar 29, 2015 at 4:18 PM, Jean Marc Saffroy jm@scality.com
wrote:
Of course I left a typo in my email: I do use the same field name
across mapping def, docs and queries, and it does not work.
JM
On Sun, Mar 29, 2015 at 4:17 PM, Jean Marc Saffroy jm@scality.com
wrote:
Hi all,
Not sure what I'm doing wrong, but I couldn't find a way to store my
docs with timestamps as seconds since the Unix epoch and query them
properly. I have my date/time field mapped like this:
"start_time": {"type": "date" },
I store documents like this:
{ "start_time": 1427631731, ... }
And get no result when I do a range query like this:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.