apache / apache/lucene

Add minChildren and maxChildren options to ToParentBlockJoinQuery [LUCENE-6354]

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

Description

This effectively allows to ignore parent documents with too few children documents via the minChildren option or too many matching children documents via the maxChildren option.

---
Migrated from [LUCENE-6354](https://issues.apache.org/jira/browse/LUCENE-6354) by Martijn van Groningen (@martijnvg), 1 vote, updated Oct 25 2018
Attachments: [LUCENE-6354.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-6354/LUCENE-6354.patch) (versions: 4)

Contributor guide

Open the contributing guide

Research direction

Start with the ToParentBlockJoinQuery entry point and review the archived LUCENE-6354.patch to understand the intended scope. Trace the existing query behavior and related tests, then verify that minChildren excludes parents with too few children and maxChildren excludes parents with too many matching children.

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.