luqum icon indicating copy to clipboard operation
luqum copied to clipboard

Support for date arithmetics in queries

Open shyam81295 opened this issue 7 years ago • 1 comments

It would be great if words like now, now-5h, now-1h can be used in dates, without being treated as simple string.

Parsing date : [now-1h TO now] would add more meaning to luqum. These human-readable queries are supported in Elasticsearch. See here Common options

P.S. When I checked, this feature was not implemented. Kindly reply, if it is already there.

shyam81295 avatar Jul 10 '18 09:07 shyam81295

Hello @shyam81295,

This is a good idea to support it. We should also consider supporting the original Lucene format (where "now" is "NOW").

Right now this won't be on our priority list, but you can contribute a PR, including tests.

alexgarel avatar Jul 10 '18 10:07 alexgarel