From java-user-return-50432-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Fri Jul 22 16:23:49 2011 Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 311BF73EB for ; Fri, 22 Jul 2011 16:23:49 +0000 (UTC) Received: (qmail 2757 invoked by uid 500); 22 Jul 2011 16:23:47 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 2701 invoked by uid 500); 22 Jul 2011 16:23:46 -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 2693 invoked by uid 99); 22 Jul 2011 16:23:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 16:23:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elaine.bing.li@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 16:23:39 +0000 Received: by pzk32 with SMTP id 32so4537560pzk.7 for ; Fri, 22 Jul 2011 09:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=sZqcaK/dPyGndQqPT2dD3cln2AXFeoEZyVr1TApUPQo=; b=DsbhfQWxxlb2RXbUSgQ2/IyXB2JMuMTEn1JGzdh+m8gPpttIJViAnsKwcIKj5ZaLJT DMzZeb4DFTLooTicNdEC3hqfFWPT1WDlaX+sPOTcPVJsmsJz6+DfkD/9mp9vBUryeIFd o0GNQZ+IeZk5czMz2pFIjy3bopJh9Y05Cn+Ro= MIME-Version: 1.0 Received: by 10.68.65.233 with SMTP id a9mr2547398pbt.187.1311351798340; Fri, 22 Jul 2011 09:23:18 -0700 (PDT) Received: by 10.68.63.39 with HTTP; Fri, 22 Jul 2011 09:23:18 -0700 (PDT) Date: Fri, 22 Jul 2011 12:23:18 -0400 Message-ID: Subject: remove queryNorm only for boosted score From: Elaine Li To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=bcaec543110e1d9b9204a8aae28f X-Virus-Checked: Checked by ClamAV on apache.org --bcaec543110e1d9b9204a8aae28f Content-Type: text/plain; charset=ISO-8859-1 Hi, I have a same question to this one which was filed long time ago( 1969?:) ). : Is it possible to remove the QueryNorm?? : so all the bf boost became an add of the solr score?? http://search.lucidimagination.com/search/document/d5605388d7fa38be/querynorm_and_fieldnorm I asked it on the solr-user mailing list and no reply. I guess the only way to do it is to override the lucene's Similarity class? I just downloaded the source code of lucene and hopped around. It is not easy to figure out what method in what class to make this seemingly straightforward change. I have not written any plugin before. Any tutorial on the how to create a lucene plugin? Any suggestion would be highly appreciated. Elaine --bcaec543110e1d9b9204a8aae28f--