You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Daniel Truemper (JIRA)" <ji...@apache.org> on 2012/06/03 20:18:22 UTC
[jira] [Created] (LUCENE-4103) AnalyzerQueryNodeProcessor throws a
class cast exception with the RegexpQueryNode
Daniel Truemper created LUCENE-4103:
---------------------------------------
Summary: AnalyzerQueryNodeProcessor throws a class cast exception with the RegexpQueryNode
Key: LUCENE-4103
URL: https://issues.apache.org/jira/browse/LUCENE-4103
Project: Lucene - Java
Issue Type: Bug
Components: core/queryparser
Reporter: Daniel Truemper
Priority: Minor
When using the flexible query parser with the regular expression syntax the processing pipeline fails with the following class cast exception:
{noformat}
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)
{noformat}
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!?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-4103) AnalyzerQueryNodeProcessor throws a
class cast exception with the RegexpQueryNode
Posted by "Daniel Truemper (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Truemper updated LUCENE-4103:
------------------------------------
Component/s: (was: core/queryparser)
modules/queryparser
> AnalyzerQueryNodeProcessor throws a class cast exception with the RegexpQueryNode
> ---------------------------------------------------------------------------------
>
> Key: LUCENE-4103
> URL: https://issues.apache.org/jira/browse/LUCENE-4103
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/queryparser
> Affects Versions: 4.0
> Reporter: Daniel Truemper
> Priority: Minor
> Fix For: 4.0
>
> Attachments: 0001-Fix-for-the-flexible-regexp-parsing.patch
>
>
> When using the flexible query parser with the regular expression syntax the processing pipeline fails with the following class cast exception:
> {noformat}
> 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)
> {noformat}
> 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!?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Resolved] (LUCENE-4103) AnalyzerQueryNodeProcessor throws a
class cast exception with the RegexpQueryNode
Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-4103.
---------------------------------
Resolution: Fixed
Fix Version/s: 5.0
Thanks Daniel!
> AnalyzerQueryNodeProcessor throws a class cast exception with the RegexpQueryNode
> ---------------------------------------------------------------------------------
>
> Key: LUCENE-4103
> URL: https://issues.apache.org/jira/browse/LUCENE-4103
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/queryparser
> Affects Versions: 4.0
> Reporter: Daniel Truemper
> Priority: Minor
> Fix For: 4.0, 5.0
>
> Attachments: 0001-Fix-for-the-flexible-regexp-parsing.patch, LUCENE-4103.patch
>
>
> When using the flexible query parser with the regular expression syntax the processing pipeline fails with the following class cast exception:
> {noformat}
> 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)
> {noformat}
> 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!?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-4103) AnalyzerQueryNodeProcessor throws a
class cast exception with the RegexpQueryNode
Posted by "Daniel Truemper (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Truemper updated LUCENE-4103:
------------------------------------
Attachment: 0001-Fix-for-the-flexible-regexp-parsing.patch
A patch in GIT format that can be applied to SVN via `patch -p1 -i 0001-F...`
> AnalyzerQueryNodeProcessor throws a class cast exception with the RegexpQueryNode
> ---------------------------------------------------------------------------------
>
> Key: LUCENE-4103
> URL: https://issues.apache.org/jira/browse/LUCENE-4103
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/queryparser
> Affects Versions: 4.0
> Reporter: Daniel Truemper
> Priority: Minor
> Fix For: 4.0
>
> Attachments: 0001-Fix-for-the-flexible-regexp-parsing.patch
>
>
> When using the flexible query parser with the regular expression syntax the processing pipeline fails with the following class cast exception:
> {noformat}
> 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)
> {noformat}
> 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!?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-4103) AnalyzerQueryNodeProcessor throws a
class cast exception with the RegexpQueryNode
Posted by "Daniel Truemper (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Truemper updated LUCENE-4103:
------------------------------------
Attachment: LUCENE-4103.patch
More sane test case in the TestQPHelper
> AnalyzerQueryNodeProcessor throws a class cast exception with the RegexpQueryNode
> ---------------------------------------------------------------------------------
>
> Key: LUCENE-4103
> URL: https://issues.apache.org/jira/browse/LUCENE-4103
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/queryparser
> Affects Versions: 4.0
> Reporter: Daniel Truemper
> Priority: Minor
> Fix For: 4.0
>
> Attachments: 0001-Fix-for-the-flexible-regexp-parsing.patch, LUCENE-4103.patch
>
>
> When using the flexible query parser with the regular expression syntax the processing pipeline fails with the following class cast exception:
> {noformat}
> 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)
> {noformat}
> 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!?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-4103) AnalyzerQueryNodeProcessor throws a
class cast exception with the RegexpQueryNode
Posted by "Daniel Truemper (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Truemper updated LUCENE-4103:
------------------------------------
Fix Version/s: 4.0
Affects Version/s: 4.0
> AnalyzerQueryNodeProcessor throws a class cast exception with the RegexpQueryNode
> ---------------------------------------------------------------------------------
>
> Key: LUCENE-4103
> URL: https://issues.apache.org/jira/browse/LUCENE-4103
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/queryparser
> Affects Versions: 4.0
> Reporter: Daniel Truemper
> Priority: Minor
> Fix For: 4.0
>
>
> When using the flexible query parser with the regular expression syntax the processing pipeline fails with the following class cast exception:
> {noformat}
> 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)
> {noformat}
> 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!?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org