[GeoNetwork-devel] Temporal searches

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

Hi Jose,

I think the temporal search works in a more permissive ‘overlapping’ mode i.e you will get anything inside the temporal range

you specify or anything that overlaps.

I you needed more exact control over the search range

you can use CSW search e.g this worked to give me all records within or equal to a range:

= AND <= (inclusive range)

<?xml version="1.0" encoding="UTF-8"?>

<ogc:Filter xmlns:gml=“http://www.opengis.net/gml” xmlns:ogc=“http://www.opengis.net/ogc”>

ogc:And

ogc:PropertyIsGreaterThanOrEqualTo

ogc:PropertyNameTempExtent_begin</ogc:PropertyName>

ogc:Literal1990-01-01T22:21:56.000Z</ogc:Literal>

</ogc:PropertyIsGreaterThanOrEqualTo>

ogc:PropertyIsLessThanOrEqualTo

ogc:PropertyNameTempExtent_end</ogc:PropertyName>

ogc:Literal2009-12-31Z</ogc:Literal>

</ogc:PropertyIsLessThanOrEqualTo>

</ogc:And>

</ogc:Filter>

HTH

Andrew

From: Jose Garcia [mailto:jose.garcia@anonymised.com]
Sent: Friday, 10 October 2014 8:35 PM
To: Devel geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] Temporal searches

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

Hi Andrew

I can’t use CSW for this, but thanks for confirming my suspects about the reason for this.

Regards,
Jose García

···

On Tue, Oct 14, 2014 at 1:43 AM, Andrew Walsh <awalsh@anonymised.com> wrote:

Hi Jose,

I think the temporal search works in a more permissive ‘overlapping’ mode i.e you will get anything inside the temporal range

you specify or anything that overlaps.

I you needed more exact control over the search range

you can use CSW search e.g this worked to give me all records within or equal to a range:

= AND <= (inclusive range)

<?xml version="1.0" encoding="UTF-8"?>

<ogc:Filter xmlns:gml=“http://www.opengis.net/gml” xmlns:ogc=“http://www.opengis.net/ogc”>

ogc:And

ogc:PropertyIsGreaterThanOrEqualTo

ogc:PropertyNameTempExtent_begin</ogc:PropertyName>

ogc:Literal1990-01-01T22:21:56.000Z</ogc:Literal>

</ogc:PropertyIsGreaterThanOrEqualTo>

ogc:PropertyIsLessThanOrEqualTo

ogc:PropertyNameTempExtent_end</ogc:PropertyName>

ogc:Literal2009-12-31Z</ogc:Literal>

</ogc:PropertyIsLessThanOrEqualTo>

</ogc:And>

</ogc:Filter>

HTH

Andrew

From: Jose Garcia [mailto:jose.garcia@anonymised.com]
Sent: Friday, 10 October 2014 8:35 PM
To: Devel geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] Temporal searches

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


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