Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 36776 invoked from network); 2 Jul 2008 21:26:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2008 21:26:11 -0000 Received: (qmail 76962 invoked by uid 500); 2 Jul 2008 21:26:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 76928 invoked by uid 500); 2 Jul 2008 21:26:05 -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 76917 invoked by uid 99); 2 Jul 2008 21:26:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 14:26:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of patrek@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 21:25:14 +0000 Received: by wr-out-0506.google.com with SMTP id c30so497873wra.21 for ; Wed, 02 Jul 2008 14:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=9SEHsZmtEbuDlOXyQXac3cx6HYTye1YJ5I/P2iT6kt8=; b=geHVMYJV2XV+5k8fiphPKnioSg3zXN+Ch2i4xxAfIpf2HXgPts8FzfDblyBiQi+20O ENw7xerfL0GssGk16jJi1mZ7yvONO+wl/HIcFK277lrVJ5fn5QFQPurfDlYMkC+PVakl k4RRKsXd31MdjNAkGJPLjwPnVa0CkzWyhNY8I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=bDDSuV/feO0vvMnJM3RzzblX97VrgKVla8ZByTcN510DCj3EGoMkArsdONdhOzMjgi EjaYvvr8ftST+ixsbateCWYTJbSFXwURBEKJn8ZF4iAc4bSDlqJDq15vfsNQ7B7r/ynO jfdQCPQ60wuBYJwbztrTHRY6+3oZqkqBxLSfM= Received: by 10.90.71.15 with SMTP id t15mr9546364aga.109.1215033928548; Wed, 02 Jul 2008 14:25:28 -0700 (PDT) Received: from ?192.168.1.61? ( [132.210.142.98]) by mx.google.com with ESMTPS id 34sm4811681yxm.0.2008.07.02.14.25.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 02 Jul 2008 14:25:27 -0700 (PDT) Message-ID: <486BF243.1020000@gmail.com> Date: Wed, 02 Jul 2008 17:25:23 -0400 From: Patrick User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Match all documents with non empty field Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Can't seem to wrap my head around how to go about it. I want to retrieve all documents where a certain field in not empty. What would be the best way to do it? Should I search with a MatchAllDocQuery and a Filter? Should I go through all terms in the field and create a TermQuery with it? Many thanks. Patrick --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org