gaobinlong commented on code in PR #15842:
URL: https://github.com/apache/lucene/pull/15842#discussion_r3026061214
##########
lucene/monitor/src/java/org/apache/lucene/monitor/RegexpQueryHandler.java:
##########
@@ -94,36 +94,35 @@ public TokenStream wrapTermStream(String field, TokenStream
ts) {
@Override
public QueryTree handleQuery(Query q, TermWeightor termWeightor) {
- if (q instanceof RegexpQuery == false) {
- return null;
+ if (q instanceof RegexpQuery query) {
+ String regexp = parseOutRegexp(query.toString(""));
+ String selected = selectLongestSubstring(regexp);
Review Comment:
Changed that, thanks!
--
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]