thanks Yonik, did not notice that. I patched my code not to run the search in that case, previous versions of lucene did not throw any exception in the same case though.
thanks On 3/10/06, Yonik Seeley <[EMAIL PROTECTED]> wrote: > Hi Javier, > > The exception is happening on the last line of this method: > > public Query rewrite(Query original) throws IOException { > Query[] queries = new Query[searchables.length]; > for (int i = 0; i < searchables.length; i++) { > queries[i] = searchables[i].rewrite(original); > } > return queries[0].combine(queries); > } > > It looks like the only way that can happen is if you don't have any > searchables in your MultiSearcher. > > -Yonik > http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server > > > On 3/9/06, javier muguruza <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I was using lucene-1.9-rc1-dev.jar (got it from luke website I think). > > I was running a query whose tostring() was: > > -body:angel -body:darpa -body:protocol +MatchAllDocsQuery1.0 > > > > When I upgraded to 1.9.1, I am getting an exception: > > ava.lang.ArrayIndexOutOfBoundsException: 0 > > at > > org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:268) > > at > > org.apache.lucene.search.MultiSearcher.createWeight(MultiSearcher.java:293) > > at org.apache.lucene.search.Searcher.search(Searcher.java:116) > > at org.apache.lucene.search.Searcher.search(Searcher.java:95) > > at runner.step.LuceneSearchHelper.search(LuceneSearchHelper.java:52) > > tostring gives the following: > > -body:angel -body:darpa -body:protocol +MatchAllDocsQuery > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]