You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Peter Keegan (JIRA)" <ji...@apache.org> on 2009/10/16 18:17:31 UTC

[jira] Created: (LUCENE-1986) NPE in NearSpansUnordered from PayloadNearQuery

NPE in NearSpansUnordered from PayloadNearQuery
-----------------------------------------------

                 Key: LUCENE-1986
                 URL: https://issues.apache.org/jira/browse/LUCENE-1986
             Project: Lucene - Java
          Issue Type: Bug
          Components: Search
    Affects Versions: 2.9
            Reporter: Peter Keegan
         Attachments: TestPayloadNearQuery1.java

The following query causes a NPE in NearSpansUnordered, and is reproducible with the the attached unit test. The failure occurs on the last document scored.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Resolved: (LUCENE-1986) NPE in NearSpansUnordered from PayloadNearQuery

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless resolved LUCENE-1986.
----------------------------------------

    Resolution: Fixed

Thanks Peter and Mark!

> NPE in NearSpansUnordered from PayloadNearQuery
> -----------------------------------------------
>
>                 Key: LUCENE-1986
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1986
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Peter Keegan
>            Assignee: Michael McCandless
>             Fix For: 2.9.1, 3.0
>
>         Attachments: LUCENE-1986.patch, LUCENE-1986.patch, TestPayloadNearQuery1.java
>
>
> The following query causes a NPE in NearSpansUnordered, and is reproducible with the the attached unit test. The failure occurs on the last document scored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-1986) NPE in NearSpansUnordered from PayloadNearQuery

Posted by "Peter Keegan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Keegan updated LUCENE-1986:
---------------------------------

    Attachment: TestPayloadNearQuery1.java

Unit test that causes NPE

> NPE in NearSpansUnordered from PayloadNearQuery
> -----------------------------------------------
>
>                 Key: LUCENE-1986
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1986
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Peter Keegan
>         Attachments: TestPayloadNearQuery1.java
>
>
> The following query causes a NPE in NearSpansUnordered, and is reproducible with the the attached unit test. The failure occurs on the last document scored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Assigned: (LUCENE-1986) NPE in NearSpansUnordered from PayloadNearQuery

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless reassigned LUCENE-1986:
------------------------------------------

    Assignee: Michael McCandless

> NPE in NearSpansUnordered from PayloadNearQuery
> -----------------------------------------------
>
>                 Key: LUCENE-1986
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1986
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Peter Keegan
>            Assignee: Michael McCandless
>             Fix For: 2.9.1, 3.0
>
>         Attachments: LUCENE-1986.patch, TestPayloadNearQuery1.java
>
>
> The following query causes a NPE in NearSpansUnordered, and is reproducible with the the attached unit test. The failure occurs on the last document scored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-1986) NPE in NearSpansUnordered from PayloadNearQuery

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Miller updated LUCENE-1986:
--------------------------------

    Attachment: LUCENE-1986.patch

> NPE in NearSpansUnordered from PayloadNearQuery
> -----------------------------------------------
>
>                 Key: LUCENE-1986
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1986
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Peter Keegan
>             Fix For: 2.9.1, 3.0
>
>         Attachments: LUCENE-1986.patch, TestPayloadNearQuery1.java
>
>
> The following query causes a NPE in NearSpansUnordered, and is reproducible with the the attached unit test. The failure occurs on the last document scored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-1986) NPE in NearSpansUnordered from PayloadNearQuery

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-1986:
---------------------------------------

    Fix Version/s: 3.0
                   2.9.1

> NPE in NearSpansUnordered from PayloadNearQuery
> -----------------------------------------------
>
>                 Key: LUCENE-1986
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1986
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Peter Keegan
>             Fix For: 2.9.1, 3.0
>
>         Attachments: TestPayloadNearQuery1.java
>
>
> The following query causes a NPE in NearSpansUnordered, and is reproducible with the the attached unit test. The failure occurs on the last document scored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-1986) NPE in NearSpansUnordered from PayloadNearQuery

Posted by "Peter Keegan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767373#action_12767373 ] 

Peter Keegan commented on LUCENE-1986:
--------------------------------------

+      if (!more) {
+        return false;
+      }
I was about to submit this same patch today, but I see you beat me to it :) Thanks Mark.

> NPE in NearSpansUnordered from PayloadNearQuery
> -----------------------------------------------
>
>                 Key: LUCENE-1986
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1986
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Peter Keegan
>            Assignee: Michael McCandless
>             Fix For: 2.9.1, 3.0
>
>         Attachments: LUCENE-1986.patch, LUCENE-1986.patch, TestPayloadNearQuery1.java
>
>
> The following query causes a NPE in NearSpansUnordered, and is reproducible with the the attached unit test. The failure occurs on the last document scored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-1986) NPE in NearSpansUnordered from PayloadNearQuery

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-1986:
---------------------------------------

    Attachment: LUCENE-1986.patch

Thanks for the test case Peter and for the fix Mark!

I attached a patch that merges the test case into the existing TestPayloadNearQuery, merges in Mark's fix, fixes the whitespace in that test, and adds a CHANGES entry.  I'll commit shortly & back port.

> NPE in NearSpansUnordered from PayloadNearQuery
> -----------------------------------------------
>
>                 Key: LUCENE-1986
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1986
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Peter Keegan
>            Assignee: Michael McCandless
>             Fix For: 2.9.1, 3.0
>
>         Attachments: LUCENE-1986.patch, LUCENE-1986.patch, TestPayloadNearQuery1.java
>
>
> The following query causes a NPE in NearSpansUnordered, and is reproducible with the the attached unit test. The failure occurs on the last document scored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org