Hi
Anyone know why the temporal search in the LuceneQueryBuilder works like this:
-
temporal extent start is within search extent
-
or temporal extent end is within search extent
-
or temporal extent contains search extent
The third condition, if you search from an “invalid” range: (from: 2014-10-07, to: 2013-01-01) causes to return results as produces a lucene query term like: tempExtentEnd:[2013-01-01 TO ], tempExtentBegin:[ TO 2014-10-10]
Sorry, but I don’t get the reason of this condition, except maybe to be more permissive in the searches? But anyway, produces bizarre results.
See the code in https://github.com/geonetwork/core-geonetwork/blob/develop/core/src/main/java/org/fao/geonet/kernel/search/LuceneQueryBuilder.java#L598
Thanks and regards,
Jose García
–
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.
Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net