Topic: [Bug] Searching 'date:' with Range Inconsistencies

Posted under Site Bug Reports & Feature Requests

Bug overview description.
Searching with 'date:' for a range using the year-month-day format seems to be backwards compared to the other 'keyword' format. For example, 'date:today..week' should translate to something like 'date:2019-07-29..2019-07-22' however, that returns no results, whereas 'date:2019-07-22..2019-07-29' does (and 'date:week..today' has no results).

What part(s) of the site page(s) are affected?
Searching with 'date:' using the range syntax.

What is the expected behavior?
I think the order of the two dates in the query shouldn't really matter and should be reversed internally if necessary.

What actual behavior is given instead?
No results if dates are in the "wrong" order, which is different for each format.

Can you reproduce the bug every time?
Yes.

What steps did you take to replicate this bug?
Searching for a range of dates (both with keywords and dates in 'year-month-day') and then reversing the order.

Errors or other messages returned (if any).
"No posts matched your search."

  • 1