apache / apache/lucene

Query time join returns different results based on the field type [LUCENE-4824]

Open
#5,889 8 comments 0 reactions 0 assignees View on GitHub
affects-version:4.1 affects-version:4.2 legacy-jira-label:newbie legacy-jira-priority:Minor module:join type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

I'm experiencing different query time joining behavior based on the type of the 'toField' and 'fromField'. Basically I got correct results when both 'toField' and 'fromField' are StringField, but incorrect in case of LongField.

---
Migrated from [LUCENE-4824](https://issues.apache.org/jira/browse/LUCENE-4824) by Akos Kitta, updated Jun 12 2013
Attachments: [LUCENE-4824.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4824/LUCENE-4824.patch), [QueryTimeJoinTest.java](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4824/QueryTimeJoinTest.java) (versions: 2)

Contributor guide

Open the contributing guide

Research direction

Start with the attached QueryTimeJoinTest.java to reproduce the differing query-time join results for StringField and LongField, then review the attached LUCENE-4824.patch for the historical context. Done means query-time joins return consistent, correct results when the fields use LongField as well as StringField, with regression coverage for the reported case.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.