MLT queries ignore custom term frequencies [LUCENE-8756]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
The MLT queries ignore any custom term frequencies for the like-texts and uses a hard-coded frequency of 1 per occurrence. I have prepared a test-case to demonstrate the issue and a fix proposal https://github.com/ollik1/lucene-solr/commit/9dbbce2af26698cec1ac82a526d9cee60a880678
---
Migrated from [LUCENE-8756](https://issues.apache.org/jira/browse/LUCENE-8756) by Olli Kuonanoja, updated May 03 2019
Contributor guide
Research direction
Start by reviewing the linked test case and fix proposal, then locate the MoreLikeThis query implementation and its related tests. Confirm how custom term frequencies are passed for like-texts, and consider the work complete when a regression test shows those frequencies are respected instead of replacing each occurrence with frequency 1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100