Support `today` in queries for custom fields with type date
Open
- Dominant language
- Elm
- Stars
- 2.3k
- Forks
- 184
- Avg merge
- 8h 2m
- Merged PRs (30d)
- 4
Description
I have some custom fields with the "date" type.
When I query "due>=today", I get results based on today and all future relevant documents.
However with custom fields the behavior seems to be like this:
"f:customfield>=today" => no results at all
"f:customfield<=today" => results in past and future items (just like "f:customfield:*")
A workaround is to use "hardcoded/dynamic" dates like this:
"f:customfield>=2022-07-15" (whereas 2022-07-15 is today)
I haven't tested other custom fields with other datatypes. But it might be worth a look, if there's a similar issue.
Maybe it's an issue of interpreting "today" rather than the operator...
Contributor guide
Assessment
This issue has not been assessed yet.