Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 3931 invoked from network); 25 Aug 2009 15:03:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Aug 2009 15:03:16 -0000 Received: (qmail 42051 invoked by uid 500); 25 Aug 2009 15:03:39 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 41960 invoked by uid 500); 25 Aug 2009 15:03:38 -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 41950 invoked by uid 99); 25 Aug 2009 15:03:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 15:03:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fabriciorsf@gmail.com designates 74.125.92.25 as permitted sender) Received: from [74.125.92.25] (HELO qw-out-2122.google.com) (74.125.92.25) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 15:03:30 +0000 Received: by qw-out-2122.google.com with SMTP id 8so1855269qwh.53 for ; Tue, 25 Aug 2009 08:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=OmaXZwvyryp+xjVEOqILhuLxtJ0KURDWvuxQHSaFsec=; b=VHUANxfRuOW2aTMnJAeNCCT5QXSLnDYs5v1T0mw58/gqX9Lyt096zgRpma8B9CVLWj i6zrsrmO51jeZhPLfC53Y51d6JiOK/L/gpof8BfRQOY7XXZ9HO5hcRF3bAvZobfr1wDN cXFl6X+MitIffcBwf5xU0fwC8HbrSYZUiPhho= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=sdEHSZYF/LlwrmA04QpgcpIYo1lP8ew2x0gPk6XsoFCaRG87xtvdj51uagP3Ryu2n7 uODH+Wf7PtU8pvHRqgJyDxLhpRaRJOfSnTLDEafhhCuUkxp6cJF77vaSWj1XGp4kJDl0 Mvn2cAQcwWh/iM1A606sY4Rf2p++2ggqO4uY8= MIME-Version: 1.0 Received: by 10.229.16.73 with SMTP id n9mr1478592qca.70.1251212589818; Tue, 25 Aug 2009 08:03:09 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Aug 2009 12:03:09 -0300 Message-ID: Subject: Re: How to give a score for all documents? From: =?ISO-8859-1?Q?Fabr=EDcio_Raphael?= To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0015175cb4caf466510471f8a1b0 X-Virus-Checked: Checked by ClamAV on apache.org --0015175cb4caf466510471f8a1b0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I already know about this, but I want to give a customized score for all documents in collection, independent if wache document is or isn't relevant to the vector model. The similarity function is called only when the document is relevant to the vector model. Do you understand me? Thanks! On Sat, Aug 22, 2009 at 2:28 AM, prashant ullegaddi < prashullegaddi@gmail.com> wrote: > If you want to modify the way Lucene scores documents, I guess you need t= o > extend Similarity class and provide your own implementation. Take a look > at: > > > http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/DefaultS= imilarity.html > > http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/Similari= ty.html > > Thanks, > Prashant. > > 2009/8/21 Fabr=EDcio Raphael > > > How to give a customize score for all documents independent of the vect= or > > model? > > > > I already know how to give a customize score, but I want to give this > > customize score for all documents in the collection, regardless of what > is > > relevant to the vector model. > > > > How to do this? > > > > Now, thanks! > > > > -- > > Fabr=EDcio Raphael > > > --=20 Fabr=EDcio Raphael --0015175cb4caf466510471f8a1b0--