Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 65600 invoked from network); 17 Mar 2004 02:56:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Mar 2004 02:56:21 -0000 Received: (qmail 8558 invoked by uid 500); 17 Mar 2004 02:55:58 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 8536 invoked by uid 500); 17 Mar 2004 02:55:58 -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 8523 invoked from network); 17 Mar 2004 02:55:57 -0000 Received: from unknown (HELO veneer.qala.com.sg) (210.193.2.57) by daedalus.apache.org with SMTP; 17 Mar 2004 02:55:57 -0000 Received: from kelvin (adsl-210-193-14-200.qala.com.sg [210.193.14.200]) by veneer.qala.com.sg (8.12.10/8.12.10) with SMTP id i2H30DBc024243 for ; Wed, 17 Mar 2004 11:00:14 +0800 (SGT) X-Qala-Anti-Virus: This mail is checked for Viruses by Qala Antivirus Service. Server No. 5 From: Kelvin Tan To: Lucene Users List X-Mailer: PocoMail 3.03 (1740) - Licensed Version Date: Wed, 17 Mar 2004 10:56:43 +0800 Message-ID: <2004317105643.066162@kelvin> In-Reply-To: Subject: Re: Search in all 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: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, 16 Mar 2004 08:11:34 -0500, Grant Ingersoll said: > > You can use the MultiFieldQueryParser, which will generate a query against= all of the fields you > specify, or you could index all of your documents into one or two common fields and search > against them. Since you have a lot of fields, I would guess the latter is= the better choice. > Don't you mean "add one or two common fields to all your documents"? Or am I= mistaken. Anyway, I believe adding of this common field constitutes a best-practice,= since you definitely need these fields if one wishes to perform a date-range-only= search. Would probably be a good idea to start a best-practices page in the Wiki. K > >>>> rosenm@sirma.bg 03/16/04 07:56AM >>> > In QueryParser.parse method I must give which is the default field. > > Does this means ttah non-adressed queris are executed only over > this field? > > The main question is: > How I can search in all fields in all documents in the index? > Note that I don't know field names, there can be thousands field > names in all documnets. > > 10x in advance. > > > --------------------------------------------------------------------- > 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