Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for date arithmetics in queries #26

Open
shyam81295 opened this issue Jul 10, 2018 · 1 comment
Open

Support for date arithmetics in queries #26

shyam81295 opened this issue Jul 10, 2018 · 1 comment
Milestone

Comments

@shyam81295
Copy link

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.

@alexgarel
Copy link
Member

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 alexgarel changed the title Support for human-readable queries Support for date arithmetics in queries Jul 10, 2018
@alexgarel alexgarel added this to the 1.0 milestone Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants