Hi,
I have problems with PropertyIsNotEqual filter in GN 3.2.0. This request gives me 0 results:
<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0" service="CSW" version="2.0.2" maxRecords="20" startPosition="1" resultType="results" outputSchema="http://www.isotc211.org/2005/gmd" outputFormat="application/xml">
<csw:Query typeNames="gmd:MD_Metadata">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsNotEqualTo>
<ogc:PropertyName>Subject</ogc:PropertyName>
<ogc:Literal>Ei-Inspire</ogc:Literal>
</ogc:PropertyIsNotEqualTo>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
I get plenty of results when I change PropertyIsNotEqualTo to PropertyIsEqualTo. The most of our metadata don't have the "Ei-Inspire" keyword and therefore the NotEqualTo query should give me a lot of results too.
I tried also to configure a virtual CSW endpoint with this kind of not-filter but it has problems too. Actually it works in the opposite way that it should work. It gives as a result the metadata that include the "Ei-Inspire" keyword when it should return those that don't have that word.
I already rebuilt and optimized the Lucene index but it didn't help.
Is this a valid CSW/Lucene issue in GN 3.2.0 or am I doing something wrong?
Best regards,
Kai Koistinen
Expert
National Land Survey of Finland
+358 40 487 9104
kai.koistinen@anonymised.com
I'm looking into it Kai,
https://github.com/geonetwork/core-geonetwork/issues/1827
Cheers.
Francois
2016-12-20 15:53 GMT+01:00 Koistinen Kai (MML) <
kai.koistinen@anonymised.com>:
Hi,
I have problems with PropertyIsNotEqual filter in GN 3.2.0. This request
gives me 0 results:
<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:gmd="http://www.
isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/
2001/XMLSchema-instance" xmlns:apiso="http://www.
opengis.net/cat/csw/apiso/1.0" service="CSW" version="2.0.2"
maxRecords="20" startPosition="1" resultType="results" outputSchema="
http://www.isotc211.org/2005/gmd" outputFormat="application/xml">
<csw:Query typeNames="gmd:MD_Metadata">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsNotEqualTo>
<ogc:PropertyName>Subject</ogc:PropertyName>
<ogc:Literal>Ei-Inspire</ogc:Literal>
</ogc:PropertyIsNotEqualTo>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
I get plenty of results when I change PropertyIsNotEqualTo to
PropertyIsEqualTo. The most of our metadata don't have the "Ei-Inspire"
keyword and therefore the NotEqualTo query should give me a lot of results
too.
I tried also to configure a virtual CSW endpoint with this kind of
not-filter but it has problems too. Actually it works in the opposite way
that it should work. It gives as a result the metadata that include the
"Ei-Inspire" keyword when it should return those that don't have that word.
I already rebuilt and optimized the Lucene index but it didn't help.
Is this a valid CSW/Lucene issue in GN 3.2.0 or am I doing something wrong?
Best regards,
Kai Koistinen
Expert
National Land Survey of Finland
+358 40 487 9104
kai.koistinen@anonymised.com
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/
projects/geonetwork