lucene 关键字过滤
程序员文章站
2022-05-18 19:39:03
...
keyword.replaceAll("[\\+\\-\\&\\|\\!\\(\\)\\{\\}\\[\\]\\^\\~\\*\\?\\:\\\\]","");
否则报:org.apache.lucene.queryParser.ParseException: Encountered "<EOF>" at line 1, column 0.
上一篇: 100.Same Tree
下一篇: 101. Symmetric Tree