apache / apache/lucene

Implement negation of facet path in DrillDownQuery [LUCENE-9979]

Open
#11,018 0 comments 0 reactions 0 assignees View on GitHub
legacy-jira-label:faceted-search legacy-jira-priority:Major module:facet type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Suppose the following facet values tree:

Facet
- V1
- V1.1
- V1.2
- V1.3
- V1.4
- (not topK values)
- V2
- V2.1
- V2.2
- V2.3
- V2.4
- (not topK values)

Use case:
1 - select V1 => all V1.x are selected
2 - de-select V1.1

The implementation of the negation of value V1.1 is missing in DrillDownQuery, it would be nice to implement it.

---
Migrated from [LUCENE-9979](https://issues.apache.org/jira/browse/LUCENE-9979) by Nicola Buso, updated Jun 02 2021
Attachments: [0001-Implement-negate-facet-path-in-DrillDownQuery.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-9979/0001-Implement-negate-facet-path-in-DrillDownQuery.patch)

Contributor guide

Open the contributing guide

Research direction

Start by locating DrillDownQuery and review the attached LUCENE-9979 patch to understand the existing facet-path handling. Verify the V1/V1.1 example: selecting V1 includes its descendants, then negating V1.1 excludes that path while retaining the other V1 values.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.