#901: Lucene score / Do not take into account user privileges in scoring
-------------------------+--------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: enhancement | Status: new
Priority: minor | Milestone: v2.7.0
Component: General | Version:
Keywords: |
-------------------------+--------------------------------------------------
When doing search, scoring is based on all search criteria including
privileges info (added internally). Making the same query while logged in
or not, order of the results may differ due to user privileges (even if
all records are public).
{{{
// Not logged query
+(_op0:1 _op2:1 _op0:0 _op2:0) +_isTemplate:n
// Logged in query
+(_op0:3 _op2:3 _op0:2 _op2:2 _op0:1 _op2:1 _op0:0 _op2:0 _op0:-1 _op2:-1
_owner:1 _dummy:0) +_isTemplate:n
}}}
I suggest to set field boosting to 0 by default for those fields:
{{{
<fieldBoosting>
<Field name="_op0" boost="0.0F"/>
<Field name="_op1" boost="0.0F"/>
<Field name="_op2" boost="0.0F"/>
<Field name="_dummy" boost="0.0F"/>
<Field name="_isTemplate" boost="0.0F"/>
<Field name="_owner" boost="0.0F"/>
</fieldBoosting>
}}}
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/901>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.