Skip to content

Datetime index does not accept all documented formats (e.g. YYYY-MM-DD'T'HH:MM) #8718

@Empressia

Description

@Empressia

Summary

There appears to be a mismatch between the documented datetime formats and the formats actually accepted when creating a datetime index.

References

Documentation: https://qdrant.tech/documentation/manage-data/payload/#datetime
Related discussion: #3529

Details
The documentation states that the following datetime formats are supported:

"2023-02-08T10:49:00Z" (RFC 3339, UTC)
"2023-02-08T11:49:00+01:00" (RFC 3339, with timezone)
"2023-02-08T10:49:00" (without timezone, UTC is assumed)
"2023-02-08T10:49" (without timezone and seconds)
"2023-02-08" (only date, midnight is assumed)

However, based on testing, the format:

YYYY-MM-DD'T'HH:MM

does not appear to be accepted when creating a datetime index.
As a result, the index is not created for payloads using this format.

Expected Behavior

The documented formats (including YYYY-MM-DD'T'HH:MM) should be fully supported for datetime indexing.
Or the documentation should clarify which subset of formats is actually supported for indexing.

Proposal

A feature request to extend datetime index support to all documented formats, or
a documentation clarification to explicitly distinguish supported formats for indexing vs parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions