> ----------------------------> > I could use this only when i know i only search for types and > nothing else.
So you do also want to search on text for example. The reason I asked it is because your example did not have this. > > It's hard to adjust the repository core? And if i want to > adjust it, where do i start? well, it is not trivial. First of all, you should think about how to distinguish a property that should be relevant in scoring, and one that isn't? Do you want to define this in the dasl, or in the dasl-indexer configuration (some custom attr??). Furthermore, I am not sure if you can simply use a ConstantScoreQuery if the other parts of the queries should involve scoring. Should have to test this. You start by checking out the hippo-repository. You might only end up by forking the hippo repository because you need to change/add code to it. This seems undesirable to me. You also might to request this feature added by Hippo and see wether resources can be made available by the project managers, Regards Ard > > 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 > ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
