lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4878) Regular expression syntax with MultiFieldQueryParser causes assert/NPE
Date Mon, 25 Mar 2013 08:43:15 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612492#comment-13612492
] 

Robert Muir commented on LUCENE-4878:
-------------------------------------

While we are here can we change this in MultiTermQuery:

{code}
assert field != null;
{code}

to this
{code}
if (field == null) {
  throw new NullPointerException();
}
{code}


                
> Regular expression syntax with MultiFieldQueryParser causes assert/NPE
> ----------------------------------------------------------------------
>
>                 Key: LUCENE-4878
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4878
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/queryparser
>    Affects Versions: 4.1, 4.2
>            Reporter: Adam Rauch
>            Assignee: Simon Willnauer
>             Fix For: 5.0, 4.2.1
>
>         Attachments: LUCENE-4878.patch
>
>
> Using regex syntax causes MultiFieldQueryParser.parse() to throw an AssertionError (if
asserts are on) or causes subsequent searches using the returned Query instance to throw NullPointerException
(if asserts are off). Simon Willnauer's comment on the java-user alias: "This is in-fact a
bug in the MultiFieldQueryParser [...] MultifieldQueryParser should override getRegexpQuery
but it doesn't"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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


Mime
View raw message