I am having a frustrating time understanding the behaviour of certain CSW ISO requests made via the Geonetwork admin ISO test interface (GN 2.4.2 installed on Linux server). There are two problems I'm experiencing:
(1) The OGC filter PropertyIsEqualTo behaves very much like PropertyIsLike (as a previous poster found at:
http://osgeo-org.1803224.n2.nabble.com/PropertyIsEqualTo-but-not-exactly-td4594438.html). If I issue the query below:
<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2"
resultType="results" outputSchema="csw:IsoRecord">
<csw:Query typeNames="gmd:MD_Metadata">
<csw:ElementSetName>brief</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Title</ogc:PropertyName>
<ogc:Literal>landsat mss</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
I get all records that start with "landsat mss" regardless of case (in passing, I note that the matchCase attribute of PropertyIsEqualTo is ignored). I would expect that I'd just get the one whose title is "landsat mss". Is this behaviour intentional? Is this issue addressed in 2.4.3, as I read in the release notes that work has been done in the CSW area to make the filtering behaviour more OGC compliant.
(2) I am confused about exactly which characters are allowed in the title field of a metadata record. My experience is that underscores and hyphens are quietly allowed to be entered, but then the records whose titles contain them cannot be found in CSW searches. So if I change the above to search for "landsat-tm" it's not found, even though the record exists. Similarly changing it to "landsat_tm". I realise this may be a Lucene question - it appears that _ and - (at least) have special meanings to do with tokenisation. Is there any way I can control how these metacharacters are interpreted by GN? If not, I am going to have to make sure that any automatically harvested metadata doesn't have titles with special characters in (of course they all do ).
Thanks in advance for any pointers on this.
David Herbert
British Antarctic Survey.