rmuir commented on issue #11809:
URL: https://github.com/apache/lucene/issues/11809#issuecomment-1256553025

   ok, thanks for reporting. I will dig more into this.
   
   The problem is that `isFinite` is implemented recursively, so we have a 
defensive check that you are hitting, due to the length of the string. See 
https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java#L1056-L1057
   
   For PrefixQuery, we shouldn't even be calculating `isFinite`: its implicitly 
infinite.
   For WildcardQuery, we could avoid calculating `isFinite`: if we ever see `*` 
operator, its infinite, otherwise its finite.
   
   and of course, it would be great to implement this function without 
recursion at some point. but i'm not sure its needed to solve your issue.


-- 
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]

Reply via email to