uschindler commented on pull request #1979: URL: https://github.com/apache/lucene-solr/pull/1979#issuecomment-708504330
> I don't see how this would allow me to set flags on the individual tokens? Do you have an example of that? Sorry I missed that. The Token class ha bit of bad history, so we try to avoid it where possible. But for your use case a CannedTokenStream using a token array is perfectly fine. It's also the Token class of test-framework. All fine, sorry. We should mabe create some better "tester" method so you can create a tokenstream for tests using a builder interface like: `CannedTokenStream.builder.addToken(a,b,c,d).addToken(x,y,zw).....build()` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org