Skip to content

AssertingSorted(Set|Numeric)DocValues should be unwrappable [LUCENE-9357] #10397

Closed
@asfimport

Description

@asfimport
  1. Obviously singular docValues might mimic multivalued ones via DocValues.singleton(). However, some algorithms prefers to DocValues.unwrap() them if possible.
  2. AssertingDocValues blocks this unwrapping slightly changing codepath for singular DVs.

    AS IS

    AssertingDV -> Singleton -> SingularDV

    TODO

    Singleton -> AssertingDV -> SingularDV

I think it's trivial, worthwhile and 0% risk. Are there any concerns?


Migrated from LUCENE-9357 by Mikhail Khludnev (@mkhludnev), resolved Dec 18 2021
Parent: #10368

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions