Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 52737 invoked from network); 9 May 2005 19:54:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2005 19:54:35 -0000 Received: (qmail 46840 invoked by uid 500); 9 May 2005 19:57:41 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 46817 invoked by uid 500); 9 May 2005 19:57:40 -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 46800 invoked by uid 99); 9 May 2005 19:57:40 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtpout.mac.com (HELO smtpout.mac.com) (17.250.248.73) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 09 May 2005 12:57:40 -0700 Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/8.12.11/smtpout16/MantshX 4.0) with ESMTP id j49JsH0v005105 for ; Mon, 9 May 2005 12:54:17 -0700 (PDT) Received: from [192.168.53.253] (i-195-137-67-86.freedom2surf.net [195.137.67.86]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id j49JsDdJ008027 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 9 May 2005 12:54:16 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v728) In-Reply-To: <1115640509.29861.29.camel@localhost.localdomain> References: <427F5019.7000405@sirma.bg> <1115640509.29861.29.camel@localhost.localdomain> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <00F75DA7-5E62-45E5-BB94-D700D31B2E94@mac.com> Content-Transfer-Encoding: 7bit From: kimchy.compass@mac.com Subject: Re: a *match all* query Date: Mon, 9 May 2005 20:54:02 +0100 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.728) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You can use Compass, since it does it for you by default. If you don't care about OSEM (mapping your domain objects to search engine), you can use the Compass::Core search engine abstraction to do that (just define the resource mapping...), and work with Resource (Document) and Property (Field) and work only with them. On 9 May 2005, at 13:08, Miles Barr wrote: > On Mon, 2005-05-09 at 14:57 +0300, Stanislav Jordanov wrote: > >> I need a query that will hit all documents in the index. >> How do I get one? >> > > The semi-official technique is to create an additional field in the > index and store the same value in it for all the documents. Then do a > query on that field to get back all the documents. > > > -- > Miles Barr > Runtime Collective Ltd. > > > --------------------------------------------------------------------- > 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