Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 90960 invoked from network); 6 May 2004 17:58:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 May 2004 17:58:37 -0000 Received: (qmail 21950 invoked by uid 500); 6 May 2004 17:58:26 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 21923 invoked by uid 500); 6 May 2004 17:58:25 -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 21894 invoked from network); 6 May 2004 17:58:25 -0000 Received: from unknown (HELO smtp-out5.xs4all.nl) (194.109.24.6) by daedalus.apache.org with SMTP; 6 May 2004 17:58:25 -0000 Received: from k7l.local (porta.xs4all.nl [80.127.24.69]) by smtp-out5.xs4all.nl (8.12.10/8.12.10) with ESMTP id i46HwQ6P000999 for ; Thu, 6 May 2004 19:58:26 +0200 (CEST) From: Ype Kingma To: lucene-user@jakarta.apache.org Subject: Re: Scoring documents by Click Count Date: Thu, 6 May 2004 19:58:25 +0200 User-Agent: KMail/1.5.4 References: <20040506105838.13536.qmail@web12707.mail.yahoo.com> <409A63BC.3030103@tropo.com> In-Reply-To: <409A63BC.3030103@tropo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405061958.25808.ykingma@xs4all.nl> 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 Thursday 06 May 2004 18:11, David Spencer wrote: > Otis Gospodnetic wrote: > >Sure. > >On click, get document Id (not internal docId, but something you use as > >s surrogate primary key) of the clicked document. Retrieve the > >document. Pull out the value of 'clickCount' field. +1 it. Delete > >the document, and re-add it (there is no 'update(Document)' method). > > Yeah but isn't the essence of it that Lucene is really not set up for > dynamically adjusting the *score*? > Also, above, to clarify, I think you're implying there are 2 entries for > given doc - one Document for the indexed content, and one for the > clickCount, as (from memory) I didn't think you could even re-add a doc > w/o reindexing it... > > >Otis > > > >--- Centaur zeus wrote: > >>Hi all, > >> > >>I want to integrate lucene into my web app. I would like to increase > >>the > >>score of the document when more people click on it. Could I implement > >>that > >>in lucene ? Changing the click count this way is ok, but along with that you could change the (field) norm for the document to increase it's score in subsequent queries. You can use Document.setBoost() and/or Field.setBoost() just before IndexWriter.addDocument() to do this. Regards, Ype --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org