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

] Code Create [ Bernd Wolfsegger bw at code-create.com
Tue Oct 27 13:40:06 CET 2009


Hi Gregor,

well I don't think that this getScore() value is meant as a percentage value at
all.
It was meant as a percentage value up to OpenCms 7.5 but it changed in OpenCms
7.5.1.
I think this got something to do with the new Lucene version in this OpenCms
release and that changed meaning in Lucene was not "ported" into the OpenCms
Search implementation.

For the time beeing I have a workaround now by dividing the "score" of each
result element by the max "score" of the very first result element using a
simple caching for the first "score".
So at least I have score values that look more like percentage values ;-)

I think my score value for a specific result entry now displays the relation of
the overall found search terms against the amount of all found search terms up
to that specific result entry.

For a proper solution you would have to calculate with a wheighing mechanism
etc. though.

As for the incongruent number of calculated search results I think this can't
have anything to do with user rights or published or not etc. since it happens
whithin the same search while paging through the results.

Kind regards, Bernd

-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im
Auftrag von Gregor Schneider
Gesendet: Dienstag, 27. Oktober 2009 13:07
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] WG: CmsSearchResult (or Lucene) in OpenCms 7.5.1
delivers wrong scores ?!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

well, we get a value of 1742%. the search-string was a word not
contained in any of the opencms-default-pages,

we setup kust 10 pages for a test, and we had the above result. fro
mtose 10 pages only 1 has not been published.

actually, i don't have time to debug / change the OpenCMS-sources, but
given the facts above, my best guess is that the possible reason you
reckoned for that behavior might not really strike home...

cheers

gregor
- --
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.9)

iD8DBQFK5uJf07P+AosxcLIRAi1JAJ4ndmrKSleBKsNAMV0LWcmRZgSnVQCfXVMV
hgNYqr/hfsOPzecdW9hgsIQ=
=QTJh
-----END PGP SIGNATURE-----

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list