Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 3132 invoked from network); 5 Mar 2007 13:10:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 13:10:10 -0000 Received: (qmail 89880 invoked by uid 500); 5 Mar 2007 13:10:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 89841 invoked by uid 500); 5 Mar 2007 13:10:10 -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 89829 invoked by uid 99); 5 Mar 2007 13:10:10 -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 05:10:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [130.238.164.5] (HELO elvira.its.uu.se) (130.238.164.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 05:09:57 -0800 Received: by elvira.its.uu.se (Postfix, from userid 204) id DC2526AA; Mon, 5 Mar 2007 14:09:33 +0100 (MEZ) Received: from elvira.its.uu.se(127.0.0.1) by elvira.its.uu.se via virus-scan id s276511; Mon, 5 Mar 07 14:09:28 +0100 Received: from [130.238.171.116] (pc171-116.ub.uu.se [130.238.171.116]) by elvira.its.uu.se (Postfix) with ESMTP id D132E6AA for ; Mon, 5 Mar 2007 14:09:27 +0100 (MEZ) Message-ID: <45EC1687.7040104@ub.uu.se> Date: Mon, 05 Mar 2007 14:09:27 +0100 From: Ronnie Kolehmainen User-Agent: Mozilla Thunderbird 1.0.7 (X11/20060330) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: SELECT * FROM Index-file References: <1173089251.5397.17.camel@morten-laptop> <359a92830703050452y333e3a76jfc1eb45dad23d9f8@mail.gmail.com> In-Reply-To: <359a92830703050452y333e3a76jfc1eb45dad23d9f8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Or MatchAllDocsQuery. /Ronnie Erick Erickson wrote: > Why not just call IndexReader.document(idx) where idx ranges > from 0 to IndexReader.maxDoc()? I believe if your index has some > deleted documents you'll have to handle null returns though.... > > Sorry to lose you to the dark side ... > > Best > Erick > > > On 3/5/07, Morten Simonsen wrote: > >> >> 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 >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org