Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 37014 invoked from network); 5 Mar 2007 10:08:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 10:08:15 -0000 Received: (qmail 12445 invoked by uid 500); 5 Mar 2007 10:08:17 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 12416 invoked by uid 500); 5 Mar 2007 10:08:17 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 12405 invoked by uid 99); 5 Mar 2007 10:08:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 02:08:17 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [193.71.38.25] (HELO smtp.intility.com) (193.71.38.25) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 02:08:08 -0800 Received: from mail2.i04.info ([10.1.6.21]) by VSMTP with InterScan Message Security Suite; Mon, 05 Mar 2007 11:04:56 +0100 Received: from 80.203.147.10 ([80.203.147.10]) by i2-e2k3-001.i04.local ([10.1.6.21]) via Exchange Front-End Server www.i04.info ([10.1.6.23]) with Microsoft Exchange Server HTTP-DAV ; Mon, 5 Mar 2007 10:07:34 +0000 Received: from morten-laptop by www.i04.info; 05 Mar 2007 11:07:31 +0100 Subject: SELECT * FROM Index-file From: Morten Simonsen To: java-user@lucene.apache.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Owera Date: Mon, 05 Mar 2007 11:07:31 +0100 Message-Id: <1173089251.5397.17.camel@morten-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Virus-Checked: Checked by ClamAV on apache.org Hi I'm about to convert from Lucene index-files into a MySQL (sorry about that:) I thought I would run a "SELECT *" on the index-file, then read through all the "rows" (hits?) and process each of them into my new database. So I wrote this code: ---- WildcardQuery query = new WildcardQuery(new Term("UnitID", "*")); Hits hits = ism.searchUnits(query); ---- Then I receive "Something failed: org.apache.lucene.search.BooleanQuery $TooManyClauses" I tried to set BooleanQuery.setMaxClauseCount(Integer.MAX_VALUE); but then I ran out of memory, so this is clearly not a good solution. I have tried using several different fields as well, also fields which has only a limited set of values (the field are then not unique in the index-file). Any suggestions? Morten Simonsen (And yes, I'm a newbie. Didn't find anything useful during my searches on the Internet, mailing-lists or in the book, maybe because this is a pretty infrequent thing to do?) --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org