Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 7781 invoked from network); 12 Jul 2003 04:08:57 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 12 Jul 2003 04:08:57 -0000 Received: (qmail 9442 invoked by uid 97); 12 Jul 2003 04:11:35 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@nagoya.betaversion.org Received: (qmail 9435 invoked from network); 12 Jul 2003 04:11:35 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 12 Jul 2003 04:11:35 -0000 Received: (qmail 7493 invoked by uid 500); 12 Jul 2003 04:08:55 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 7479 invoked from network); 12 Jul 2003 04:08:54 -0000 Received: from mail14.atl.registeredsite.com (64.224.219.88) by daedalus.apache.org with SMTP; 12 Jul 2003 04:08:54 -0000 Received: from netmail.mail.registeredsite.com ([216.122.69.14]) by mail14.atl.registeredsite.com (8.12.9/8.12.9) with ESMTP id h6C494iZ001777 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Sat, 12 Jul 2003 00:09:04 -0400 Received: (qmail 65494 invoked by uid 89); 12 Jul 2003 04:11:04 -0000 Received: from unknown (HELO ehatchersolutions.com) (68.170.78.210) by mail.marciamay.net with SMTP; 12 Jul 2003 04:11:04 -0000 Date: Fri, 11 Jul 2003 17:27:05 -0700 Subject: Re: Adding to the same Keyword field Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Erik Hatcher To: "Lucene Users List" Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: <9096326A-B3FF-11D7-8E59-000393A564E6@ehatchersolutions.com> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N It will make multiple "tokens" within the same field.... just as if you had used a tokenized field with all the values (and your analyzer split them in the manner you're adding them). Does that make sense? In other words, adding keywords "foo" and "bar" is the same as using a text field as "foo bar" and using the WhitespaceAnalyzer. If you want to use a query like a TermQuery on "http://jakarta.apache.org" then indexing multiple Keyword's with the same field name is what you're after. Erik On Wednesday, July 9, 2003, at 12:31 PM, Ryan Clifton wrote: > The Lucene API docs say that you can add to the same Field name and > the text will be appended into the field. If I Add multiple times to > the same Field name with a Field.Keyword type, will it make one big > Keyword or multiple smaller Keywords in the same field? > > Basically, I want to add all the href links on a page into one Field, > but I don't want them to be tokenized (Keywords). > > thx. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org