itschrispeck commented on code in PR #11204:
URL: https://github.com/apache/pinot/pull/11204#discussion_r1280148413
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/realtime/impl/invertedindex/NativeMutableTextIndex.java:
##########
@@ -114,8 +121,8 @@ public void close()
private List<String> analyze(String document) {
List<String> tokens = new ArrayList<>();
try (TokenStream tokenStream = _analyzer.tokenStream(_column, document)) {
- tokenStream.reset();
CharTermAttribute attribute =
tokenStream.getAttribute(CharTermAttribute.class);
+ tokenStream.reset();
Review Comment:
this doesn't change behavior, but follows the intended flow from the
[docs](https://lucene.apache.org/core/4_7_0/core/org/apache/lucene/analysis/TokenStream.html)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]