Hello Ard,
 
The amount of products of a certain type in a search should not be a factor in 
determine the relevance. When i do a search where i only look for two types and 
nothing else, then the relevance for all found documents should be the same. In 
the current situation it will give subsidies types an higher relevance because 
the amount of found document of that type is higher than the other type.
The relevant dasl part is 
<d:and> <d:or> <d:eq> <d:prop><h:type/></d:prop> <d:literal>product</d:literal> 
</d:eq> <d:eq> <d:prop><h:type/></d:prop> <d:literal>subsidie</d:literal> 
</d:eq> </d:or> </d:and> 
 
what is the problem if every hit should have an equal score, to justassign 
score '1' to every hit? I suppose, you are only interested in*if* a document is 
a hit, or not. 0 or 1. Then just do not sort, andgive score 1.
----------------------------> 
I could use this only when i know i only search for types and nothing else. 
 
It's hard to adjust the repository core? And if i want to adjust it, where do i 
start?
 
Thanks in advance,
 
Amon



> Subject: RE: [HippoCMS-dev] WEBDAV/LUCENE, own score algoritm> Date: Mon, 17 
> Mar 2008 09:55:06 +0100> From: [EMAIL PROTECTED]> To: 
> [email protected]> > Hello Amon,> > what is the problem if 
> every hit should have an equal score, to just> assign score '1' to every hit? 
> I suppose, you are only interested in> *if* a document is a hit, or not. 0 or 
> 1. Then just do not sort, and> give score 1.> > Otherwise you'll end up 
> needing some adjustments to the repository core> > -Ard> > > Beste Hippos,> > 
> > > In the where clause of the dasl I only check for h:type. I > > want the 
> score to be equal for every hit. In the current > > situation it isn't. The 
> relevant dasl part is <d:and> > > <d:or> <d:eq> > > 
> <d:prop><h:type/></d:prop> > > <d:literal>product</d:literal> </d:eq> <d:eq> 
> > > <d:prop><h:type/></d:prop> > > <d:literal>subsidie</d:literal> </d:eq> 
> </d:or> > > </d:and> How can i achieve this (using the > > 
> ConstantScoreQuery!!??)? and where do i start?> > > > > > Thanks in advance,> 
> > Amon> > > > > > 
> _________________________________________________________________> > Express 
> yourself instantly with MSN Messenger! Download today > > it's FREE!> > 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01> > 
> /********************************************> > Hippocms-dev: Hippo CMS 
> development public mailinglist> > > 
> ********************************************> Hippocms-dev: Hippo CMS 
> development public mailinglist
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to