> String qStr = "Query1"; // or "Query2" or ... > QueryParser parser = ...; > IndexSearcher searcher = ...; > Query query = parser.parse(qStr); > TopDocs results = searcher.search(query, Integer.MAX_VALUE); ScoreDoc[] hits > = results.scoreDocs; > > returned no hits for the 2nd test.
Maybe because it runs out of memory? Passing Integer.MAX_VALUE is allocating 2 billion result slots... Uwe --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org