Folks,
Been trying to get my head around CSW using a local GN2.2.0 installation for a few days. Using the CSW client to perform a GetRecords request I have found the default CQL query of ‘AnyText like %africa%’ simply doesn’t work. Digging deeper, GetRecords.getCqlXmlString is failing to parse (CQLParser.parse), it doesn’t recognise the ‘like’ operator.
CQLParser is in the org.z3950.zing.cql package. Google takes me to http://zing.z3950.org/cql/intro.html . It may be just me but Zing CQL IS NOT the same as OGC CQL as specified by CSW 2.0.1 (OGC 04-021r3).
Any thoughts or comments from the committers?
Cheers,
Steve
Hi Stephen,
On jeu, 2008-08-07 at 16:33 +1000, Stephen.Davies@anonymised.com wrote:
CQLParser is in the org.z3950.zing.cql package. Google takes me to
http://zing.z3950.org/cql/intro.html . It may be just me but Zing CQL
IS NOT the same as OGC CQL as specified by CSW 2.0.1 (OGC 04-021r3).
As mentionned by Andrea some times ago
http://www.nabble.com/CSW-2.0.1-test-server-td8975277.html#a8975277
"the CQL implementation is far from good (the library
we use it pretty naive). This has some limitations (for example you
cannot search words that contain spaces)."
Maybe we should plan for migration to GeoTools CQL parser instead of the
zing one ?
http://docs.codehaus.org/display/GEOTDOC/02+CQL+Utility+Class
Then we could plan to convert FE to Lucene query for filter and CQL to
FE to Lucene query for CQL ?
Any thougths ?
Francois