org.apache.lucene.util.automaton.TooComplexToDeterminizeException: Determinizing automaton with 55142 states and 127502 transitions would result in more than 10000 states. at org.apache.lucene.util.automaton.Operations.determinize(Operations.java:741) ~[lucene-core-6.4.1.jar:6.4.1 ```
此报错大概意思是,确定一个55142个状态和127502种转换的自动机会导致出现大于10000种状态。
也就是说这个报错是和输入的字符串长度有关的。
使用通配符查询时不要使用通配符打头,且一定要限制用户输入的字符串长度。比如字符串大于一定长度要进行处理或者返回错误。