apache / apache/lucene

Factor MockGraphTokenFilter into LookaheadTokenFilter + random tokens [LUCENE-3968]

Open
#5,041 3 comments 0 reactions 1 assignee Claimed by @mikemccand View on GitHub
legacy-jira-fix-version:4.9 legacy-jira-fix-version:6.0 legacy-jira-priority:Major type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

MockGraphTokenFilter is rather hairy... I've managed to simplify it (I think!) by breaking apart its two functions...

I think LookaheadTokenFilter can be used in the future for other graph aware filters.

---
Migrated from [LUCENE-3968](https://issues.apache.org/jira/browse/LUCENE-3968) by Michael McCandless (@mikemccand), updated May 09 2016
Attachments: [LUCENE-3968.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-3968/LUCENE-3968.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.