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 271D56C93 for ; Thu, 30 Jun 2011 03:37:42 +0000 (UTC) Received: (qmail 82672 invoked by uid 500); 30 Jun 2011 03:37:39 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 82158 invoked by uid 500); 30 Jun 2011 03:37:33 -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 82121 invoked by uid 99); 30 Jun 2011 03:37:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 03:37:24 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.243.6.182] (HELO mail.mysigninternational.com) (212.243.6.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 03:37:17 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.mysigninternational.com (Postfix) with ESMTP id 698DEC2125 for ; Thu, 30 Jun 2011 05:36:55 +0200 (CEST) Received: from mail.mysigninternational.com ([127.0.0.1]) by localhost (mysign-postfix1.INTERNET [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tqaz7Mz3zUbs for ; Thu, 30 Jun 2011 05:36:55 +0200 (CEST) Received: from Exchange2007.mysigndomain.corp (unknown [192.168.13.8]) by mail.mysigninternational.com (Postfix) with ESMTP id 46E39C2120 for ; Thu, 30 Jun 2011 05:36:55 +0200 (CEST) Received: from Exchange2007.mysigndomain.corp ([fe80::b93b:88fd:f694:bc31]) by Exchange2007.mysigndomain.corp ([fe80::b93b:88fd:f694:bc31%10]) with mapi; Thu, 30 Jun 2011 05:36:55 +0200 From: Clemens Wyss To: "java-user@lucene.apache.org" Date: Thu, 30 Jun 2011 05:36:53 +0200 Subject: AW: negative wildcard query Thread-Topic: negative wildcard query Thread-Index: Acw2nEqqBOD+/H49ReOlWaL+nPDIKgAOkw3g Message-ID: References: <6B7753F6-061B-4324-8C31-51E280BFC5CD@gmail.com> In-Reply-To: <6B7753F6-061B-4324-8C31-51E280BFC5CD@gmail.com> Accept-Language: de-DE, de-CH Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, de-CH Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Karl, I just saw, that I had a typo in my initial post. It should be: Say I have a document with a single field "f". How can I search Documents w= hich have not "test" in field "f" I tried: -f: *test* f: -*test* f: NOT *test* but no luck. Using WildCardQuery class... Any advices? Thx Clemens=20 > -----Urspr=FCngliche Nachricht----- > Von: Karl Wettin [mailto:karl.wettin@gmail.com] > Gesendet: Mittwoch, 29. Juni 2011 22:36 > An: java-user@lucene.apache.org > Betreff: Re: negative wildcard query >=20 > You'll also need things to exclude from, eg a MatchAllDocsQuery. >=20 > karl >=20 > 29 jun 2011 kl. 17.25 skrev Clemens Wyss: >=20 > > Say I have a document with field "f1". How can I search Documents which > have not "test" in field "f" > > I tried: > > -f: *test* > > f: -*test* > > f: NOT *test* > > > > but no luck. Using WildCardQuery class... > > Any advices? > > > > Thx > > Clemens > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > >=20 >=20 > --------------------------------------------------------------------- > 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