Lets move and rename the CompletionTokenStream in the suggest module into the analysis module renamed as ConcatenateGraphFilter. See comments in
LUCENE-8323 leading to this idea. Such a TokenStream (or TokenFilter?) has several uses:
- for the suggest module
- by the SolrTextTagger for NER/ERD use cases –
- for doing complete match search efficiently
It will need a factory – a TokenFilterFactory, even though we don't have a TokenFilter based subclass of TokenStream.
It appears there is no back-compat concern in it suddenly disappearing from the suggest module as it's marked experimental and it only seems to be public now perhaps due to some technicality (it has package level constructors).