apache / apache/lucene

nested SpanNearQuery with repeating groups does not find match [LUCENE-5331]

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

Description

Nested spanNear queries do not work in some cases when repeating groups are in the query.

Test case is attached ...

---
Migrated from [LUCENE-5331](https://issues.apache.org/jira/browse/LUCENE-5331) by Jerry Zhou, 2 votes, updated Sep 05 2016
Attachments: [NestedSpanNearTest_20160902.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5331/NestedSpanNearTest_20160902.patch), [NestedSpanNearTest.java](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5331/NestedSpanNearTest.java)
Linked issues:
- #3935
- #8451

Contributor guide

Open the contributing guide

Research direction

Start with the attached NestedSpanNearTest.java or NestedSpanNearTest_20160902.patch to reproduce the nested SpanNearQuery case, then trace the relevant span-query implementation in the Lucene source. Confirm which repeating-group query fails and add a regression test showing the expected match; the issue provides no repository file path or named test command.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.