Skip to content

Similarities should round the length up [LUCENE-8053] #9101

@asfimport

Description

@asfimport

The encoding that we use for lengths currently rounds down in case the length cannot be stored accurately. We should round up instead so that frequencies can never be larger than the length.


Migrated from LUCENE-8053 by Adrien Grand (@jpountz)

Metadata

Metadata

Assignees

No one assigned

    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