Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 44302 invoked from network); 15 Mar 2005 16:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Mar 2005 16:08:56 -0000 Received: (qmail 37044 invoked by uid 500); 15 Mar 2005 16:08:51 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 36896 invoked by uid 500); 15 Mar 2005 16:08: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 Delivered-To: moderator for java-user@lucene.apache.org Received: (qmail 14731 invoked by uid 500); 15 Mar 2005 15:52:18 -0000 Delivered-To: apmail-jakarta-lucene-user@jakarta.apache.org X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Message-ID: <423704ED.8000801@bassy.net> Date: Tue, 15 Mar 2005 16:53:17 +0100 From: =?ISO-8859-1?Q?Jer=F3nimo_L=F3pez_Bezanilla?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: es-es, es MIME-Version: 1.0 To: lucene-user@jakarta.apache.org Subject: Search in appendable fields Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I want to index articles: My document is: - Title - Authors There are one or more authors, and I index the field with "Appendable Fields" (page 68, Lucene in action). Document doc = new Document(); doc.add(Field.Text("Title", title)); doc.add(Field.Text("Author", author1)); doc.add(Field.Text("Author", author2)); For example I have this documents: Title: "Lucene in Action" Author1: "ERIK HATCHER" Author2: "OTIS GOSPODNETIC" Title: "Lucene in 21 days" Author1: "OTIS HATCHER" Author2: "LOPEZ JESUS" And the problem is that if I search by the author "OTIS HATCHER" y get both documents as a hit, but only the second one is valid. How can i force that all words of "OTIS HATCHER" must appear in the same field? Thanks Jerolba --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org