Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 72380 invoked from network); 30 Jun 2006 23:10:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2006 23:10:42 -0000 Received: (qmail 16443 invoked by uid 500); 30 Jun 2006 23:10:36 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 16419 invoked by uid 500); 30 Jun 2006 23:10:35 -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 16408 invoked by uid 99); 30 Jun 2006 23:10:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 16:10:34 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.12.11.96] (HELO smtp007.mail.ukl.yahoo.com) (217.12.11.96) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 30 Jun 2006 16:10:34 -0700 Received: (qmail 82049 invoked from network); 30 Jun 2006 23:10:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=LjH4pUnktceUvnRdLyNpF5fyV/yEP+jBCYJAPtcO6O+dUBL53qmDsg9pzQFTsp5ybHFhZmFGLvH29vxxQ0/7EzwUv2s8KYyJeGZbIcX5ftw9htB4DErHzJDDxBbbH7C8sGQuKURVwkFP9iKeFZrBSX2nnD4JSKgX3PMAG9pzi8s= ; Received: from unknown (HELO ?127.0.0.1?) (markharw00d@194.106.34.5 with plain) by smtp007.mail.ukl.yahoo.com with SMTP; 30 Jun 2006 23:10:12 -0000 Message-ID: <44A5AF52.1040604@yahoo.co.uk> Date: Sat, 01 Jul 2006 00:10:10 +0100 From: markharw00d User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Any existing query types that support equivalent of "-not interested" ? References: <20060630154726.22284.qmail@web26009.mail.ukl.yahoo.com> <44A55AE0.6030607@yahoo.co.uk> <200606301922.03113.paul.elschot@xs4all.nl> In-Reply-To: <200606301922.03113.paul.elschot@xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >Maybe this: > >SpanNotQuery(interested, SpanNearQuery(not,interested)) > >with a SpanTermQuery for each term? > > Thanks, Paul. This is working well for me and I can happily use multiple SpanTermQueries embedded in a SpanOrQuery in place of each of the single words in your example. SpanNotQuery( SpanOrQuery(interested,curious...) SpanNearQuery( SpanOrQuery(not,wasnt,isnt,...) SpanOrQuery(interested,curious...) ) ) ___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org