Skip to content

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

Open
wants to merge 4 commits into
base: v1.15
Choose a base branch
from

Conversation

guimachiavelli
Copy link
Member

Fixes #3254

@guimachiavelli guimachiavelli linked an issue May 16, 2025 that may be closed by this pull request
1 task
@guimachiavelli guimachiavelli marked this pull request as ready for review May 19, 2025 19:20
@guimachiavelli guimachiavelli requested a review from dureuill May 19, 2025 19:20
@@ -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"`.
Copy link
Contributor

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.

Copy link
Contributor

@dureuill dureuill left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v1.15: Comparison filter operators work with strings
2 participants