Skip to content

behavior change in TopDocs#order_by_u64_field #2805

@mdumandag

Description

@mdumandag

As stated in the documentation, and in previous versions of tantivy, we were able to use any type of the field in this method, but after #2726, there is a check in the SortByStaticFastValue struct that verifies the field is not only fast, but of the exact type of the output of the collector. (i.e. u64 for this method).

Now, if you try to pass a i64 field, you get an error.

Is this the expected behavior now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions