[GeoNetwork-devel] Lucene & Overlaps

Hi all, in 2.0.3 it looks like the overlap operator is not returning result if metadata bbox equals area of interest.

Any ideas why ? Anyone having the same behaviour?

Test is : create a metadata with -180,-90 180,90 and search for overlaps “world” will return 0 result. It works fine with 2.1beta5.

Problem in 2.0.3 could be solved fixing the overlaps template in lucene-utils.xsl, adding 1 to fixed values for E, W, N & S.

<RangeQuery fld=“eastBL”

lowerTxt=“{$westBL + 1}”

upperTxt=“{180 + 360 + 1}”

inclusive=“true”/>

In the equal operator, if you set lowerTxt and upperTxt to $westBL, your search return also no result.

<RangeQuery fld=“westBL”

lowerTxt=“{$westBL - 1}”

upperTxt=“{$westBL + 1}”

inclusive=“true”/>

Is the inclusive parameter is working in 2.1 and not in 2.0.3 ? Maybe we made an update of lucene ?

Should I fixed the problem in 2.0.3 ?

Ciao. Francois