lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject HighlighterTest failure
Date Tue, 26 Apr 2005 01:09:22 GMT
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(Searcher.java:32)
     [junit]     at  
org.apache.lucene.search.highlight.HighlighterTest.testMultiSearcher(Hig 
hlighterTest.java:436)
     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
Method)
     [junit]     at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav 
a:39)
     [junit]     at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)


     [junit] Test org.apache.lucene.search.highlight.HighlighterTest  
FAILED

Which comes from this code in HighlighterTest:

		IndexSearcher searchers[]=new IndexSearcher[2];
		searchers[0] = new IndexSearcher(ramDir1);
		searchers[1] = new IndexSearcher(ramDir2);
		MultiSearcher multiSearcher=new MultiSearcher(searchers);
		query = QueryParser.parse("multi*", FIELD_NAME, new  
StandardAnalyzer());
		System.out.println("Searching for: " + query.toString(FIELD_NAME));
		//at this point the multisearcher calls combine(query[])
		hits = multiSearcher.search(query);


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


Mime
View raw message