Skip to content

Leverage sparse doc value indexes for range and value facet collection #14406

@gsmiller

Description

@gsmiller

Description

Spinning off an issue from the discussion in #14273.

There are a few ways we can probably leverage sparse doc value indexes for numeric range/value faceting.

  1. Use a similar technique to the one in Speed up histogram collection in a similar way as disjunction counts. #14273 to increment counts associated with specific ranges/values without loading individual doc values in cases where we know entire doc blocks fall within specific ranges/value.
  2. Do the above-mentioned counting in batch when collecting with doc ID streams.
  3. Leverage competitive iteration to skip over blocks of docs that are known not to fall into any of the ranges we are faceting on.

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