Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 26132 invoked from network); 14 May 2003 00:51:50 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 14 May 2003 00:51:50 -0000 Received: (qmail 28022 invoked by uid 97); 14 May 2003 00:54:02 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@nagoya.betaversion.org Received: (qmail 28015 invoked from network); 14 May 2003 00:54:02 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 14 May 2003 00:54:02 -0000 Received: (qmail 25832 invoked by uid 500); 14 May 2003 00:51:48 -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 25819 invoked from network); 14 May 2003 00:51:47 -0000 Received: from visor.qala.com.sg (210.193.2.43) by daedalus.apache.org with SMTP; 14 May 2003 00:51:47 -0000 Received: from kelvin (adsl-210-193-14-56.qala.com.sg [210.193.14.56]) by visor.qala.com.sg (8.11.3/8.11.3) with SMTP id h4E0pn711508 for ; Wed, 14 May 2003 08:51:49 +0800 (SGT) X-Qala-Anti-Virus: This mail is checked for Viruses by Qala Antivirus Service. Server No. 2 From: Kelvin Tan To: Lucene Users List X-Mailer: PocoMail 2.64 (1120) - Licensed Version Date: Wed, 14 May 2003 08:53:26 +0800 In-Reply-To: Message-ID: <200351485326.993581@kelvin> Subject: Re: Searching on multiple default fields Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I confess that I've never quite understood the use of= Field.UnStored. So the field is indexed but the original content is not saved? btw, an obvious drawback of this approach is when attempting to= index large files (>10MB for instance), because it means you'll actually be= indexing it twice. If use is just for normal fields, its great. Kelvin On Tue, 13 May 2003 06:08:32 -0400, Erik Hatcher said: >Or as is often seen with Lucene usage, all fields can be glued >together >into a "contents" field, which is then used as the default= search >field >like this: > >doc.add(Field.Text("title", title)); >doc.add(Field.UnIndexed("body", body)); >doc.add(Field.Keyword("category",category)); > >doc.add(Field.UnStored("contents", title + >" " + body + >" " + category)); > >This gives individual field access if desired, but by default= any >field >is searchable by one aggregate one. Note the space added= between >text >on the "contents" field above! > > Erik > >On Tuesday, May 13, 2003, at 03:40 AM, Kelvin Tan wrote: >>You can use MultiFieldQueryParser to accomplish something to= that >>effect... >> >>Kelvin >> >>On Tue, 13 May 2003 13:05:42 +0530, Ramrakhiani, Vikas said: >>>Hi, >>> >>>I am using Lucene 1.3. I want the 'default' search field to= point >>>to >>>multiple fields (actually, all available fields). >>>Is there API support to accomplish this ? >>> >>>thanks for your help, >>>vikas. >>> >>>--------------------------------------------------------------= ----- >>>-- >>>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 >> > > >----------------------------------------------------------------= ----- >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