Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 58417 invoked from network); 29 Mar 2006 15:20:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Mar 2006 15:20:30 -0000 Received: (qmail 14094 invoked by uid 500); 29 Mar 2006 15:20:14 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 13979 invoked by uid 500); 29 Mar 2006 15:20:13 -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 Received: (qmail 13942 invoked by uid 99); 29 Mar 2006 15:20:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2006 07:20:13 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of MadhuV01@unisourcelink.com designates 12.129.97.235 as permitted sender) Received: from [12.129.97.235] (HELO uwmosmtp3.uninet.unisourcelink.net) (12.129.97.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2006 07:20:11 -0800 Received: from UWMATLIMC02.uninet.unisourcelink.net ([170.204.13.186]) by uwmosmtp3.uninet.unisourcelink.net with InterScan Messaging Security Suite; Wed, 29 Mar 2006 10:19:44 -0500 Received: from uwmatlgpc01.uninet.unisourcelink.net ([170.204.13.154]) by UWMATLIMC02.uninet.unisourcelink.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 29 Mar 2006 10:19:44 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C65344.357A4557" Subject: Boosting a token in the query Date: Wed, 29 Mar 2006 10:19:44 -0500 Message-ID: <09117A73E538B34A9483D157C4690D440F1C2F9C@uwmatlgpc01.uninet.unisourcelink.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Boosting a token in the query Thread-Index: AcZTRDUcwaAb5ZQ0RkibVWhri83EJg== From: "Madhusudan, Veda \(Norcross, DAV\)" To: X-OriginalArrivalTime: 29 Mar 2006 15:19:44.0700 (UTC) FILETIME=[357E77C0:01C65344] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C65344.357A4557 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is there a way to boost a token while querying? Example, in the following query +(DESC:sheets DESC:sheet), can the token 'sheets' be boosted and given higher precedence over 'sheet' so the results matching 'sheets ' appear before those for 'sheet'? I am using lucene 1.2. I tried using the boost factor for 'sheets' so the query would read: +(DESC:sheets^2.0 DESC:sheet), but that did not help. =20 I have read overriding getFieldQuery of QueryParser would help boost terms/tokens, but this is not available in lucene 1.2. Nor is the IndexSearcher's explain method.=20 =20 Any ideas on how this can be accomplished? =20 Thanks. =20 ------_=_NextPart_001_01C65344.357A4557--