Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 85247 invoked from network); 17 Jun 2003 11:42:46 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 17 Jun 2003 11:42:46 -0000 Received: (qmail 7011 invoked by uid 97); 17 Jun 2003 11:45:05 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@nagoya.betaversion.org Received: (qmail 7004 invoked from network); 17 Jun 2003 11:45:04 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 17 Jun 2003 11:45:04 -0000 Received: (qmail 83022 invoked by uid 500); 17 Jun 2003 11:42:23 -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 82948 invoked from network); 17 Jun 2003 11:42:23 -0000 Received: from unknown (HELO mail.lou.emergint.com) (216.249.142.214) by daedalus.apache.org with SMTP; 17 Jun 2003 11:42:23 -0000 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C334C5.A07BFBEC" Subject: Weighted Search by Field using MultiFieldQueryParser X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Tue, 17 Jun 2003 07:43:10 -0400 Message-ID: <8D7DE0C84F1D5149894354E754E6807E176A55@mail.lou.emergint.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Weighted Search by Field using MultiFieldQueryParser Thread-Index: AcM0xVebxj1JPrlnTJOZ3cyxfyh7mA== From: "Kevin L. Cobb" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C334C5.A07BFBEC Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I have an index that has three fields in it. When I do a search using MultiFieldQueryParser, the search applies the same importance (weight) to each of the fields. BUT, what if I want to apply a different weight to each field, i.e. I want to consider found terms from certain fields as less "important" than others. I have applied an algorithm to help me do this, which involves searching each field separately and then recombining the results into a single collection, but hate to reinvent the wheel if I don't have to. =20 =20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kevin L Cobb, MT(ASCP), SCJP2 Senior Software Engineer Emergint, Inc. 501 E Broadway, Suite 250 Louisville, KY 40202 Kevin.Cobb@emergint.com 502.852.1423 502.852.1589 fax =20 =20 The preceding e-mail message and attachments, if any, contains information that is confidential and qualifies as such under the Definition of Confidential Information in the Non-Disclosure Agreement, and may constitute non-public information and trade secrets. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender at 502-852-1605.=20 =20 ------_=_NextPart_001_01C334C5.A07BFBEC--