Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 83968 invoked from network); 23 Jul 2006 21:04:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jul 2006 21:04:00 -0000 Received: (qmail 12988 invoked by uid 500); 23 Jul 2006 21:03:55 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 12958 invoked by uid 500); 23 Jul 2006 21:03:55 -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 12945 invoked by uid 99); 23 Jul 2006 21:03:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jul 2006 14:03:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of movingmarius@gmx.de designates 213.165.64.21 as permitted sender) Received: from [213.165.64.21] (HELO mail.gmx.net) (213.165.64.21) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 23 Jul 2006 14:03:54 -0700 Received: (qmail invoked by alias); 23 Jul 2006 21:02:18 -0000 Received: from client434.sg.fr.studentenwohnheim-bw.de (EHLO client434.sg.fr.studentenwohnheim-bw.de) [141.70.115.180] by mail.gmx.net (mp033) with SMTP; 23 Jul 2006 23:02:18 +0200 X-Authenticated: #7090505 From: Marius Heinzmann To: java-user@lucene.apache.org Subject: How to use a different score model? Date: Sun, 23 Jul 2006 23:02:10 +0200 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607232302.10340.movingmarius@gmx.de> X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi everybody, im currently trying to figure out how to implement another score model in the lucene framework. But after reading a lot of source code and a little debugging it seems like i have to write a lot of score-classes -- for each query type one. And finally i need to get lucene to use my score-classes somehow. Well like you see there is still a lot missing in this picture, especially how the main search classes (Weight, Similarity, Scorer, Queries) interact to finally come to one score. Unfortunately i haven't found a good documentation or tutorial or hint. So if anybody knows one im glad to hear about it :) What i have concluded so far is that: - Similarity encapsulates calculations for the IDF, TF, and so on. - Weight seems to be an auxillary class to be able to only have one instance of a query. (im really not sure what else this is used for) - Queries are all the different kinds of queries there are. - Scorers are implementations of the scoring model for all those kinds of queries. (if i got something terribly wrong please correct me) Now is this the correct or best way to use a different scoring model? It seems to me that there has to be a more elegant way, but i haven't found one. I hope i didn't write too much senseless stuff for i am way too tired right now and i hope someone might help me :) Greetings Marius Heinzmann --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org