apache / apache/lucene

PayloadNearQuery bugs [LUCENE-4219]

Open
#5,291 1 comment 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

This query has never been thru QueryUtils, nor are the explains tested.

Applying Queryutils gives:
```
[junit4:junit4] FAILURE 0.06s | TestPayloadNearQuery.testPayloadNear
[junit4:junit4] > Throwable #1: junit.framework.AssertionFailedError: query assigned doc 321 a score of <2.3333333> but skipTo(321) has <2.2857144>! expected:<2.3333333> but was:<2.2857144>
```

---
Migrated from [LUCENE-4219](https://issues.apache.org/jira/browse/LUCENE-4219) by Robert Muir (@rmuir), updated Aug 08 2012
Attachments: [LUCENE-4219_test.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4219/LUCENE-4219_test.patch)

Contributor guide

Open the contributing guide

Research direction

Start with the TestPayloadNearQuery test and run it through QueryUtils to reproduce the score mismatch reported for document 321. Trace the PayloadNearQuery behavior behind the differing query and skipTo scores, then ensure QueryUtils and explain behavior are tested successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search, testing
Issue type
Bug
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.