Hello
We are running a GN 3.6.0 instance with a Postgresql 10 dbs in a Windows
server environ* and are trying to make a csw:getRecords request with a
PropertyIsEqualTo filter return only exact matches:
*<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2
<http://www.opengis.net/cat/csw/2.0.2>"
xmlns:ogc="http://www.opengis.net/ogc"
service="CSW" version="2.0.2" resultType="results"
startPosition="1" maxRecords="15"
outputFormat="application/xml"
outputSchema="http://www.opengis.net/cat/csw/2.0.2
<http://www.opengis.net/cat/csw/2.0.2>"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance>"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
<http://www.opengis.net/cat/csw/2.0.2>
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd
<http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd>"
xmlns:gmd="http://www.isotc211.org/2005/gmd
<http://www.isotc211.org/2005/gmd>"
xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0
<http://www.opengis.net/cat/csw/apiso/1.0>"> <csw:Query
typeNames="csw:Record">
<csw:ElementSetName>full</csw:ElementSetName> <csw:Constraint
version="1.1.0"> <ogc:Filter><ogc:PropertyIsEqualTo>
<ogc:PropertyName>title</ogc:PropertyName>
<ogc:Literal>Cykelvägar</ogc:Literal>
</ogc:PropertyIsEqualTo></ogc:Filter> </csw:Constraint>
<ogc:SortBy xmlns:ogc="http://www.opengis.net/ogc
<http://www.opengis.net/ogc>"> <ogc:SortProperty>
<ogc:PropertyName>title</ogc:PropertyName>
<ogc:SortOrder>ASCE</ogc:SortOrder> </ogc:SortProperty>
</ogc:SortBy> </csw:Query> </csw:GetRecords*>
What this returns however is not only the metadata post with the exact
title "Cykelvägar" but rather every metadata post with titles matching
"*Cykelvägar*", of which there are three:
*<csw:SearchResults numberOfRecordsMatched="3"
numberOfRecordsReturned="3" elementSet="full" nextRecord="0">*:
*<dc:title>Cykelvägar</dc:title>*
*<dc:title>Förslag cykelvägar (inkl. utgår) - ÖP 2030</dc:title>*
*<dc:title>Förslag cykelvägar - ÖP 2030</dc:title>*
As far as I'm aware PropertyIsLike allows wildcards and PropertyIsEqualTo
doesn't so it seems PropertyIsLike is supposed to return only exact
matches, is this correct?
If this is correct, how can we troubleshoot our current environment?
*The above request produces the same result on a default installation of GN
3.4 in a Linux environ (with the default h2 db)
Thanks for any replies /
David.