apache / apache/lucene

Make TestRandomChains check that filters preserve positions [LUCENE-8361]

Open
#9,408 11 comments 0 reactions 1 assignee Claimed by @romseygeek View on GitHub
legacy-jira-priority:Minor type:test
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Follow-up of #9407: it is a bit disappointing that we only found this issue because of a newly introduced token filter. I'm wondering that we might be able to make TestRandomChains detect more bugs by verifying that the sum of position increments is preserved through the whole analysis chain.

---
Migrated from [LUCENE-8361](https://issues.apache.org/jira/browse/LUCENE-8361) by Adrien Grand (@jpountz), updated Jun 29 2018
Attachments: [LUCENE-8361.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-8361/LUCENE-8361.patch)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.