apache / apache/lucene

Grouping using custom logic [LUCENE-7074]

Open
#8,130 1 comment 0 reactions 0 assignees View on GitHub
legacy-jira-fix-version:6.0 legacy-jira-label:features legacy-jira-priority:Major module:core/search type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

My company would like to enable customized grouping in Lucene/Solr. Our need is to allow grouping by hamming distance between two text field values. We started implementing this idea in Lucene through editing several
classes (Grouping, AbstractTermFirstPassGroupingCollector and AbstractTermSecondPassGroupingCollector)
so that they receive custom logic to use for grouping.

---
Migrated from [LUCENE-7074](https://issues.apache.org/jira/browse/LUCENE-7074) by Dean Gurvitz (@deansg), updated May 09 2016
Attachments: [LUCENE-7074.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-7074/LUCENE-7074.patch)

Contributor guide

Open the contributing guide

Research direction

Start by reading Grouping, AbstractTermFirstPassGroupingCollector, and AbstractTermSecondPassGroupingCollector, then inspect the attached LUCENE-7074.patch. Clarify the intended custom grouping contract and how hamming distance between two text field values should be represented. Done means the agreed grouping behavior is implemented and covered by relevant grouping tests.

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
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.