apache / apache/lucene

TestRandomChains fail with Shingle+CommonGrams [LUCENE-4170]

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

Description

ant test -Dtestcase=TestRandomChains -Dtests.method=testRandomChains -Dtests.seed=12635ABB4F789F2A -Dtests.multiplier=3 -Dtests.locale=pt -Dtests.timezone=America/Argentina/Salta -Dargs="-Dfile.encoding=ISO8859-1"

This test has two shinglefilters, then a common-grams filter. I think posLen impls in commongrams and/or shingle has a bug if the input is already a graph.

![recursive.shinglefilter.output.png](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4170/recursive.shinglefilter.output.png)

---
Migrated from [LUCENE-4170](https://issues.apache.org/jira/browse/LUCENE-4170) by Robert Muir (@rmuir), 2 votes, updated May 03 2013
Attachments: [LUCENE-4170.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4170/LUCENE-4170.patch), [recursive.shinglefilter.output.png](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4170/recursive.shinglefilter.output.png)
Linked issues:
- #4549

Contributor guide

Open the contributing guide

Research direction

Start by running the supplied ant command for TestRandomChains and testRandomChains with the recorded seed. Then inspect the ShingleFilter and common-grams filter implementations, using the attached recursive.shinglefilter.output.png and LUCENE-4170.patch as context. Done means reproducing the failure, identifying the position-length issue, and making the test pass.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.