Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FA2917F6C for ; Wed, 7 Jan 2015 16:43:20 +0000 (UTC) Received: (qmail 80694 invoked by uid 500); 7 Jan 2015 16:43:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 80635 invoked by uid 500); 7 Jan 2015 16:43:18 -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 80611 invoked by uid 99); 7 Jan 2015 16:43:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 16:43:15 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FORGED_YAHOO_RCVD,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iorixxx@yahoo.com designates 98.138.90.77 as permitted sender) Received: from [98.138.90.77] (HELO nm14.bullet.mail.ne1.yahoo.com) (98.138.90.77) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 16:43:10 +0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=bAwNgi/aqFFcGAUwiVAKS9F8l8BRSvZfXTbMAei4UNWiXiuikYW26OWLmGcdUML0kfJ7JDx7tzQu5kmf8VLhaYin8Ldn/IzHsY2QrBytxc+gKLP4qQI8BeMWWB6DZVhgi9U/AMcUe1XWMUxlg2cCJt2ys8iMgJDI/FPb99xnF73n94NLDiPIS5o7Tx8086rNXDLQKfwFU0KVEhEt11hyb9o8vyuG0rzaUamxkQFscacblXJ5S7e6D9185mHmPqumblP0r6ky+mk9lJBi+qp0Tra5PMoK5AaB0sHg8MryDhDe8voYapkaRKLV9JJ0ckppWokY1YwIZPraGH5iLbrn1w==; Received: from [98.138.100.112] by nm14.bullet.mail.ne1.yahoo.com with NNFMP; 07 Jan 2015 16:40:44 -0000 Received: from [98.138.87.3] by tm103.bullet.mail.ne1.yahoo.com with NNFMP; 07 Jan 2015 16:40:44 -0000 Received: from [127.0.0.1] by omp1003.mail.ne1.yahoo.com with NNFMP; 07 Jan 2015 16:40:44 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 110622.77883.bm@omp1003.mail.ne1.yahoo.com X-YMail-OSG: FqndFQ0VM1lXKtSutWw5L49AuJQ16ysXcnAqXVCpljGLpoImLUpWuswxqomECeB DTQcFKO_me0nrDvHFWTxlMDI9JqDxzOkPL1tsKo_Ff4iCinaXs3dNpf2YtxUP9.2daG0rPcKeXRe yVuhCGGN84V7.ba6YLmGQxEckBmldM03jkjzkns3jGcRojBY5104tglYrOQAqA5WaadxvYZaKOeP yn541THx4WLTgNvhm7kiGtPqxDV6Lh.qZGW5CFmW4dqbxx6lgR6FGTT2oxj0LDDxXVtcGpT_Xz.l 7XVkumE_F7gcboAi4aNJ.2Nm.Poak05uKVB.G.D7l3mRxxvsDwXh87CEdMTQCPCk81wfhYx7AsYX fF_Qzl1J3XPP4zGbcr8QmO9KiQVcHN8rEuzcgeEqnhG2K_XaMLEMxQATpVWKGRp1LJjT80RJPzwM 81FfN1RRsmrZ5A.NU6mG2aRgOqcJM.uzPLEVPOSFVbHY4l10Q3Iy_bcm49yd7mXLOviEMCy1rHEc S1663MGx_uM_Dm99wiSBqWVv.uTvl_hvQ2mZozwS6p5_YeFwfBluBS6TZTvUX0MxEkzsIo.MhMxI 1j1c247fOjPXxZkiZ7whXzeqWkg-- Received: by 98.138.105.211; Wed, 07 Jan 2015 16:40:43 +0000 Date: Wed, 7 Jan 2015 16:40:42 +0000 (UTC) From: Ahmet Arslan Reply-To: Ahmet Arslan To: "java-user@lucene.apache.org" Message-ID: <827453903.3502973.1420648842994.JavaMail.yahoo@jws10040.mail.ne1.yahoo.com> In-Reply-To: References: Subject: Re: Looking for docs that have certain fields empty (an/or not set) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Clemens, Since you are a lucene user, you might be interested in Uwe's response on a similar topic : http://find.searchhub.org/document/abb73b45a48cb89e Ahmet On Wednesday, January 7, 2015 6:30 PM, Erick Erickson wrote: Should be, but it's a bit confusing because the query syntax is not pure boolean, so there's no set to take away the docs with entries in field 1, you need the match all docs bit, i.e. *:* -field1:[* TO *] (That's asterisk:asterisk -field1:[* TO *] in case the silly list interprets the asterisks as markup) There's some special magic in filter query processing to handle this case, but not in the main query parser. Best, Erick On Wed, Jan 7, 2015 at 8:14 AM, Clemens Wyss DEV wrote: > Say I wanted to find documents which have no content in "field1" (or dosuments that have no field 'field1'), wouldn't that be the following query? > -field1:[* TO *] > > Thanks for you help > Clemens > > --------------------------------------------------------------------- > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org