apache / apache/lucene

Should more Facets implementations be concurrent?

Open
#12,474 0 comments 0 reactions 0 assignees View on GitHub
type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

### Description

Faceting can happen in parallel for each segment, but most faceting implementations don't take advantage of this.

I'm wondering if more faceting implementations should be concurrent. Maybe we can decide to run in sequential mode or concurrent mode dynamically based on the number of docs we facet over.

For an example of concurrent facets, see`ConcurrentSortedSetDocValuesFacetCounts`.

Contributor guide

Open the contributing guide

Research direction

Start with ConcurrentSortedSetDocValuesFacetCounts, the example of concurrent faceting named in the issue, then compare it with the other faceting implementations. Determine which implementations could safely run concurrently and whether execution should be selected dynamically based on the number of documents; done requires a concrete implementation decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.