From: Yoav G. <yo...@so...> - 2007-05-15 07:12:13
|
Hi All, As I've been interested in those classes (Similarity and Scorer) - Is there any real documentation or explanations on those classes? What's the concept and how the values they give reflect the search rating? YG -----Original Message----- From: clu...@li... [mailto:clu...@li...] On Behalf Of Thomas Busch Sent: Monday, May 14, 2007 8:20 PM To: clu...@li...; Fenton Garratt Subject: Re: [CLucene-dev] Minimising diversity of relevance score Hi Fenton, as far as i know there are 2 solutions. Either write your own scorer or write your own similarity. Thomas. > Hi all, > > I've got a Clucene index of 2.5 million documents, which contain the > descriptive text for a bunch of associated images. > > Now there are three main fields which I'm allowing to be searched on, > and am able via a MultiFieldQuery and some query time boosting to get > these results back in the order I would like. This is so that search > terms found in field 1 rank higher than terms found in field 2, and > terms in field 2 rank higher than those in field 3. > > The problem comes when I try to perform a secondary sort on the id field > descending, so that the more recent stuff is shown first. > > The ranking of the relevance for the search is so disparate and > fractional, that the secondary sort is rendered useless. Ideally, what > I'd like to be able to do is reduce the relevance score to one of 3 > distinct values, depending on which field the search term was found in. > That way, my secondary search would make sense. > > I'm using Thomas Busch's perl wrapper around Clucene as well, which will > have a bearing on things. > > I feel sure this is possible, having looked at the java mailing lists, > but needed a little more help, being a bit of a n00b to lucene. > > Best Regards, > > Fenton. > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ CLucene-developers mailing list CLu...@li... https://lists.sourceforge.net/lists/listinfo/clucene-developers |