Make TestRandomChains check that filters preserve positions [LUCENE-8361]
Open
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
Assessment
This issue has not been assessed yet.