Re: HighlighterTest failure
HighlighterTest passes for me on trunk (ant test -Dtestcase=HighlighterTest). Query.combine was removed a long time ago ... are you sure you've checked out Lucene's trunk? Mike McCandless http://blog.mikemccandless.com On Thu, Dec 6, 2012 at 1:56 AM, rajashekar rajashekarpann...@yahoo.in wrote: I get a failure running HighlighterTest from the Subversion trunk. Below are the details. What's the fix? Thanks, Erik [junit] Searching for: multi* [junit] - --- [junit] Testcase: testMultiSearcher(org.apache.lucene.search.highlight.HighlighterTest): Caused an ERROR [junit] null [junit] java.lang.IllegalArgumentException [junit] at org.apache.lucene.search.Query.combine(Query.java:113) [junit] at org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:298) [junit] at org.apache.lucene.search.Query.weight(Query.java:92) [junit] at org.apache.lucene.search.Hits.init(Hits.java:40) [junit] at org.apache.lucene.search.Searcher.search(Searcher.java:40) [junit] at org.apache.lucene.search.Searcher.search(Searc - -- View this message in context: http://lucene.472066.n3.nabble.com/HighlighterTest-failure-tp4024711.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: HighlighterTest failure
I think some funky emails are coming across? this came right after a bugzilla notification and another email that looked really old On Thu, Dec 6, 2012 at 2:02 PM, Michael McCandless luc...@mikemccandless.com wrote: HighlighterTest passes for me on trunk (ant test -Dtestcase=HighlighterTest). Query.combine was removed a long time ago ... are you sure you've checked out Lucene's trunk? Mike McCandless http://blog.mikemccandless.com On Thu, Dec 6, 2012 at 1:56 AM, rajashekar rajashekarpann...@yahoo.in wrote: I get a failure running HighlighterTest from the Subversion trunk. Below are the details. What's the fix? Thanks, Erik [junit] Searching for: multi* [junit] - --- [junit] Testcase: testMultiSearcher(org.apache.lucene.search.highlight.HighlighterTest): Caused an ERROR [junit] null [junit] java.lang.IllegalArgumentException [junit] at org.apache.lucene.search.Query.combine(Query.java:113) [junit] at org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:298) [junit] at org.apache.lucene.search.Query.weight(Query.java:92) [junit] at org.apache.lucene.search.Hits.init(Hits.java:40) [junit] at org.apache.lucene.search.Searcher.search(Searcher.java:40) [junit] at org.apache.lucene.search.Searcher.search(Searc - -- View this message in context: http://lucene.472066.n3.nabble.com/HighlighterTest-failure-tp4024711.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: HighlighterTest failure
Yeah, the original email on this thread is a truncated version of Erik Hatcher's 2005 email to the then java-dev@l.a.o list: http://markmail.org/thread/iuypjnmewll7nc5o, but with a different sender. The truncated Bugzilla email sent earlier today http://markmail.org/message/veawuqdlggq5ev3u was originally sent April 25th, 2005, the same day as Erik's original email. Both of these emails were sent by rajashekar rajashekarpann...@yahoo.in - this person appears to be replaying portions of a mail archive through Nabble somehow. Steve On Dec 6, 2012, at 2:55 PM, Robert Muir rcm...@gmail.com wrote: I think some funky emails are coming across? this came right after a bugzilla notification and another email that looked really old On Thu, Dec 6, 2012 at 2:02 PM, Michael McCandless luc...@mikemccandless.com wrote: HighlighterTest passes for me on trunk (ant test -Dtestcase=HighlighterTest). Query.combine was removed a long time ago ... are you sure you've checked out Lucene's trunk? Mike McCandless http://blog.mikemccandless.com On Thu, Dec 6, 2012 at 1:56 AM, rajashekar rajashekarpann...@yahoo.in wrote: I get a failure running HighlighterTest from the Subversion trunk. Below are the details. What's the fix? Thanks, Erik [junit] Searching for: multi* [junit] - --- [junit] Testcase: testMultiSearcher(org.apache.lucene.search.highlight.HighlighterTest): Caused an ERROR [junit] null [junit] java.lang.IllegalArgumentException [junit] at org.apache.lucene.search.Query.combine(Query.java:113) [junit] at org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:298) [junit] at org.apache.lucene.search.Query.weight(Query.java:92) [junit] at org.apache.lucene.search.Hits.init(Hits.java:40) [junit] at org.apache.lucene.search.Searcher.search(Searcher.java:40) [junit] at org.apache.lucene.search.Searcher.search(Searc - -- View this message in context: http://lucene.472066.n3.nabble.com/HighlighterTest-failure-tp4024711.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: HighlighterTest failure
: Both of these emails were sent by rajashekar : rajashekarpann...@yahoo.in - this person appears to be replaying : portions of a mail archive through Nabble somehow. Yeah ... there were 3 messages from this user in the moderation queue this monring that i approved in because they were topical, and only after they were delivered did i notice they were esentially re-sends of messages from 2005. -Hoss - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: HighlighterTest failure
Erik Hatcher wrote: I get a failure running HighlighterTest from the Subversion trunk. Below are the details. What's the fix? I don't have the code here to run, but the problem is that MultiSearcher.rewrite(line 298) is calling Query.combine, which requires all the combined queries to be equal. Obviously they will not be equal in general for multi-term queries (PrefixQuery's in this case) since those queries expand into different terms for the different searchers. Just above the failing line in MultiSearcher.rewrite() it rewrites the query it was passed from the parser in the HighlighterTest. This should be a PrefixQuery, which should rewrite into two BooleanQuery's, which should then lead to BooleanQuery.combine() and not Query.combine(). So it appears that either the query parser did not produce a PrefixQuery, or you don't have the current code? Could you step through it and find out what kind of query is passes to MultiSearcher.rewrite() and what comes back from the 2 rewrite() calls made there for the two searchers? Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]