apache / apache/lucene

TrecTopicsReader fails to parse fields title and descriptions when content spans over multiple lines [LUCENE-5031]

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

Description

Updated TrecTopicsReader to correctly read title and descriptions, when content spans multiple lines; see minor tweak to existing test case to show the presence of the bug.

---
Migrated from [LUCENE-5031](https://issues.apache.org/jira/browse/LUCENE-5031) by Nigel V Thomas
Attachments: [LUCENE-5031.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5031/LUCENE-5031.patch)

Contributor guide

Open the contributing guide

Research direction

Start by locating TrecTopicsReader and its existing test, then run the test case referenced in the issue to reproduce parsing failure when title or description content spans multiple lines. Compare the behavior with the attached LUCENE-5031.patch; done means multiline title and description fields parse correctly and the test demonstrates the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.