lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33725] - [PATCH] NullPointerException when using nested SpanOrQuery in SpanNotQuery
Date Thu, 24 Feb 2005 17:49:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33725>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33725





------- Additional Comments From miles@runtime-collective.com  2005-02-24 18:49 -------
Created an attachment (id=14357)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=14357&action=view)
Additional test cases for when using a SpanOrQuery as the exclude option

Here's a patch file for

test/src/org/apache/lucene/search/spans/TestBasics.java

I added two test cases:

1. When there's only one SpanQuery in the SpanOrQuery
2. When there's more than one SpanQuery in the SpanOrQuery

There's also a commented out test for when you have an empty SpanOrQuery but
that currently throws an exception (complains that fields don't have the same
name) when you try to run it. 

I only used regular SpanTermQuery objects within the SpanOrQuery. I assume the
regular SpanOrQuery tests verify the SpanOrQuery works correctly with the
different span classes.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message