Hello Amon, is it possible to attach your dasls as xml or have a mail with proper indenting: I cannot read it like this :-)
Pls also note that this is a public list, where non native dutch speakers are subscribed to as well. I recently added the d:score support, so there might be an issue with it. Also do note, that the scoring algorithm in lucene is non trivial, so explaining why a certain doc scores higher than some other is quite hard. I'll try to find the default scoring algorithm, and find the most important parts of it. I do admit that only searching for a docs type you would expect to have all scores similar. If this is a bug i'll try to reproduce it and find time to fix it, otherwise i'll try to explain why it works like it works. Also note that you can write your own scoring algorithm, but it might take you some time if your not familiar with it (but of course, if it is good looking code, you'll make it to the contributors list :-) ) So, pls resend your used dasls, Regards Ard > > Beste Ard, > > Een vraag over het score attribuut. ik gebruik de volgende > webdav search: > > <?xml version="1.0" encoding="utf-8"?><webdav:request > xmlns:webdav="http://hippo.nl/webdav/1.0" > xmlns:S="http://jakarta.apache.org/slide/" > xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" > xmlns:h="http://hippo.nl/cms/1.0" xmlns:d="DAV:" > method="SEARCH" > target="webdav://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"><webdav:heade > r value="Infinity" > name="Depth"/><webdav:body><d:searchrequest><d:basicsearch><d: > select><d:prop><S:hitPosition/><S:nrHits/><h:title/><h:product > Type/><d:score/></d:prop></d:select> > <d:from><d:scope><d:href/><d:depth>Infinity</d:depth></d:scope > ></d:from> > <d:where><d:and><d:or><d:eq><d:prop><h:type/></d:prop><d:liter > al>product</d:literal></d:eq><d:eq><d:prop><h:type/></d:prop>< > d:literal>subsidie</d:literal></d:eq></d:or></d:and></d:where> > <d:orderby><d:order><d:prop><d:score/></d:prop></d:order><d:or > der><d:prop><h:sortTitle/></d:prop><d:ascending/></d:order></d > :orderby> > <d:limit><d:nresults>15</d:nresults><S:offset>0</S:offset></d:limit> > </d:basicsearch></d:searchrequest></webdav:body></webdav:request> > > Als ik een search doe verwacht ik voor elk gevonden document > dezelfde score. Echter, dit is niet het geval. Waardoor kan > dit komen? In de where clausule van de wevdav wordt er alleen > op type gecontroleerd. > > Als ik de volgende webdav gebruik: > > <?xml version="1.0" encoding="utf-8"?><webdav:request > xmlns:webdav="http://hippo.nl/webdav/1.0" > xmlns:S="http://jakarta.apache.org/slide/" > xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" > xmlns:h="http://hippo.nl/cms/1.0" xmlns:d="DAV:" > method="SEARCH" > target="webdav://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"><webdav:heade > r value="Infinity" > name="Depth"/><webdav:body><d:searchrequest><d:basicsearch><d: > select><d:prop><S:hitPosition/><S:nrHits/><h:title/><h:product > Type/><d:score/></d:prop></d:select> > <d:from><d:scope><d:href/><d:depth>Infinity</d:depth></d:scope > ></d:from> > <d:where><d:and><d:or><d:eq><d:prop><h:type/></d:prop><d:liter > al>product</d:literal></d:eq><d:eq><d:prop><h:type/></d:prop>< > d:literal>subsidie</d:literal></d:eq></d:or><d:or> > <S:strict-property-contains> > > <d:prop><h:title/></d:prop><d:literal>bouwvergunning</d:litera > l></S:strict-property-contains> > <S:property-contains> > > <d:prop><h:title/></d:prop><d:literal>bouwvergunning</d:litera > l></S:property-contains> > <S:propsearch> > > <d:prop><h:sortTitle/></d:prop><d:literal>bouwvergunning*</d:l > iteral></S:propsearch> > <S:propsearch> > > <d:prop><h:subtitle/></d:prop><d:literal>bouwvergunning*</d:li > teral></S:propsearch><d:contains>bouwvergunning</d:contains></ > d:or></d:and></d:where> > <d:orderby><d:order><d:prop><d:score/></d:prop></d:order><d:or > der><d:prop><h:sortTitle/></d:prop><d:ascending/></d:order></d > :orderby> > <d:limit><d:nresults>15</d:nresults><S:offset>0</S:offset></d:limit> > </d:basicsearch></d:searchrequest></webdav:body></webdav:request> > > > > krijg ik in de frontend het volgende resultaat, zie foto > scorealfa.jpg. > > als ik de "order by" omdraai: > <d:orderby><d:order><d:prop><h:sortTitle/></d:prop></d:order>< > d:order><d:prop><d:score/></d:prop><d:ascending/></d:order></d > :orderby> > > krijg ik hele andere score terug. Zie foto alfascore.jpg. > > Waarom is deze score heel anders? > > Met vriendelijke groet, > 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
