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=32167>. 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=32167 [PATCH]multiple wildcards ? at the end of search pattern return incorrect hits [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Summary| [PATCH]multiple wildcards ?|[PATCH]multiple wildcards ? |at the end of search pattern|at the end of search pattern |return incorrect hits |return incorrect hits ------- Additional Comments From [EMAIL PROTECTED] 2004-11-13 17:17 ------- for unit test: In testQuestionmark of TestWildcardQuery.java, The original unit test assetions (for query 2 and query3) should change to pass the test. Since previously the 'metal' matches 'metal?', but it should not. changes for quert2's assertion: assertMatches(searcher, query2, 1); // note that the number changes to // 1 since 'metal' is not a match any more. The same modification to query3's assertion is : assertMatches(searcher, query3, 0); //change to 0 since there is no match Erik has suggest a new unit test: Query query6 = new WildcardQuery(new Term("body", "metal??")); assertMatches(searcher, query6, 0); After I review this bug carefully, I realize that the bug is not only for multiply '?', it is for trail "?"-- After all "?" is not a "*" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]