Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 69115 invoked from network); 10 Apr 2010 17:56:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Apr 2010 17:56:53 -0000 Received: (qmail 33295 invoked by uid 500); 10 Apr 2010 17:56:51 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 33240 invoked by uid 500); 10 Apr 2010 17:56:50 -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 33232 invoked by uid 99); 10 Apr 2010 17:56:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 17:56:50 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of serera@gmail.com designates 72.14.220.153 as permitted sender) Received: from [72.14.220.153] (HELO fg-out-1718.google.com) (72.14.220.153) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 17:56:43 +0000 Received: by fg-out-1718.google.com with SMTP id d23so1445743fga.5 for ; Sat, 10 Apr 2010 10:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=xxLTSeTE/y9YHmzdlAH5WZFb33qScfvB9BHkgkfiY9s=; b=WNiygfdR72Ua4d52iEUOkOq7nXUdD5ZWlIeBNGJXgXLnfLqm6prOV8hwIVU09Pm/H8 4eF92z4tpc1RdeatlEQK0M1tEBINpt2Ln+O+BPqSoocxerjSRzaF6Uqrw09fazUtSVsK Q17PiUZ1IL5FnjcwV4Z7wI6fH6m3yNvgAVFkU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=B4Pr1+MwjPS6jfyq3ZFL/ngIMfjzZY80QqRDaz53t0c2D/hKJ6VImy1hAIstd3A9NN yQKAReOtqDNwWGJ3hpGQmwAgs0r0uPYymQ6tEWT2h842Q3gliYDS/7mrzkh7IMbZq4dR ZSiCYAM0d9ZsNed03YuhBLsTGeL5WSeIWcmoI= MIME-Version: 1.0 Received: by 10.103.121.2 with HTTP; Sat, 10 Apr 2010 10:56:22 -0700 (PDT) In-Reply-To: References: Date: Sat, 10 Apr 2010 20:56:22 +0300 Received: by 10.103.84.1 with SMTP id m1mr845432mul.26.1270922182475; Sat, 10 Apr 2010 10:56:22 -0700 (PDT) Message-ID: Subject: Re: Removing terms in the Index From: Shai Erera To: "java-user@lucene.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Hi. I'm not sure I understand what you searched for. When you search for "Lucene in action", do you search it with the quotes or not? If with the quotes, then I don't understand how the 2nd dox is found. Do you perhaps have a test code you can share w/ us? It can be a short and simple main which creates an index w/ some documents and then searches them. Shai On Saturday, April 10, 2010, Fotos fotos wrote: > Hello! > I am a beginner with Lucene. I'm needing to do the following: > > I have a text file with the following terms: > > "Lucene in action" > "Lucene" > > and a file with the following sentences: > > 1 - "Lucene in action now." > 2 - "Lucene for Dummies" > 3 - "Managing Gigabytes" > > I need to search in phrases of doc2, the terms of doc1. > > But in search of the word n-grama: "Lucene in Action", he also finds the 2nd > sentence. > > In this case, I want to meet with the term 1 ("Lucene in Action"), only the > first phrase and remove the term of the index, for not to be found when I > pass the term 2 ("Lucene") > > Railan Xisto > Web Developer > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org