[opencms-dev] WG: WG: CmsSearchResult (or Lucene) in OpenCms 7.5.1 delivers wrong scores ?!

] Code Create [ Bernd Wolfsegger bw at code-create.com
Tue Oct 27 16:22:07 CET 2009


Well, this somehow got only to Flo.

-----Ursprüngliche Nachricht-----
Von: ] Code Create [ Bernd Wolfsegger [mailto:bw at code-create.com] 
Gesendet: Dienstag, 27. Oktober 2009 13:51
An: 'Florian Hopf'
Betreff: AW: [opencms-dev] WG: CmsSearchResult (or Lucene) in OpenCms 7.5.1
delivers wrong scores ?!

Hi Flo,

I didn't read your post first ... cause it showed up in my spam folder
(identified by spamassasin) :)

O.k., I think you may be right.
But if you're right, I would recognize this behavior as a bug.
If you are not allowed to see a resource it should not be incorporated into the
search count.

But the fact that I have one result count form result page 1 to 3 and the other
one from 4 to 7 is not fully explainable by your statement, or is it ?

What ever ... search seems to be a little buggy since release 7.5.1.

Kind regards, Bernd

-----Ursprüngliche Nachricht-----
Von: Florian Hopf [mailto:hopf at synyx.de] 
Gesendet: Dienstag, 27. Oktober 2009 11:04
An: bw at code-create.com; The OpenCms mailing list
Betreff: Re: [opencms-dev] WG: CmsSearchResult (or Lucene) in OpenCms 7.5.1
delivers wrong scores ?!

Hi Bernd,

] Code Create [ Bernd Wolfsegger wrote:
> I also discovered another strange behavior:
> I searched for the term "OpenCms" on my site.
> I configured the search to have 5 results per page and show 6 pagelinks.
>>From the first to the third resultpage search.getSearchResultCount() is "32"
> form the fourth to the seventh page it is "31".
> 

I guess this is caused by the fact that the pagination is calculated
from all results found but for every page the displayed results are
filtered so that only those are displayed that the current user is
allowed to see.

So if you have a pagination of 5 configured and you find 21 documents
the pagination will display 5 pages when you are on the first page. But
if on the second page there is a document you do not have access to the
pagination is recalculated and there are only 4 pages now.

Regarding the scoring I don't really know but I think I read or heard
something about changes in the normalization process for recent lucene
versions but I am not sure.

hope to help at least a little bit

Regards
Flo





More information about the opencms-dev mailing list