-
Notifications
You must be signed in to change notification settings - Fork 264
v1.15: String comparison filter #3256
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
base: v1.15
Are you sure you want to change the base?
Conversation
@@ -14,7 +14,7 @@ In this guide, you will learn about Meilisearch's approach to date and time valu | |||
|
|||
## Preparing your documents | |||
|
|||
To filter and sort search results chronologically, your documents must have at least one numeric field containing a [UNIX timestamp](https://kb.narrative.io/what-is-unix-time). | |||
To filter and sort search results chronologically, your documents must have at least one field containing either a [UNIX timestamp](https://kb.narrative.io/what-is-unix-time) or a date in a human readable format such as `"2025-01-13"`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the dates need to be in lexicographic order, that is, for two dates d0 and d1, id0 < d1 in lexicographic order if and only if d0 is chronologically before d1.
This property is ensured for some standard date formats such as https://en.wikipedia.org/wiki/ISO_8601 or the RFC 3339 which is closely related.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, please see inline comment
Fixes #3254