Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0-ALPHA
-
None
-
New, Patch Available
Description
When using the flexible query parser with the regular expression syntax the processing pipeline fails with the following class cast exception:
java.lang.ClassCastException: org.apache.lucene.queryparser.flexible.standard.nodes.RegexpQueryNode cannot be cast to org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode at __randomizedtesting.SeedInfo.seed([34AF003D9388DF45:CB5F8BB4EE483FEE]:0) at org.apache.lucene.queryparser.flexible.standard.processors.AnalyzerQueryNodeProcessor.postProcessNode(AnalyzerQueryNodeProcessor.java:114)
A very simple patch is attached that will simply add the RegexpQueryNode to the nodes that should not get processed by the AnalyzerQueryNodeProcessor. I think this means that the regular expression is not analyzed, which should be ok!?