[GeoNetwork-users] Wildcard in GetRecords query

Dear Community

How is the wildcard working in CSW GEtRecords query?

If I make query below, it doesn't find any metadata. If I replace %basi%
with %basins%, I find all the metadata containing word "basins". So does the
query take account only metadata containing the whole word despite of
wildcard? Or am I doing something wrong?

Best regards,
Riikka Kivekäs

<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; service="CSW" version="2.0.2">
    <csw:Query typeNames="csw:Record">
        <csw:Constraint version="1.1.0">
            <Filter xmlns="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;&gt;
                <PropertyIsLike wildCard="%" singleChar="_" escapeChar="\">
                    <PropertyName>AnyText</PropertyName>
                    <Literal>%basi%</Literal>
                </PropertyIsLike>
            </Filter>
        </csw:Constraint>
    </csw:Query>
</csw:GetRecords>

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Wildcard-in-GetRecords-query-tp5578657p5578657.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

hi Riikka,

wildcard search is not working in GeoNetwork 2.6.0.

for a description of the problem see
http://trac.osgeo.org/geonetwork/ticket/339.

I have fixed this and committed the fix to trunk and the 2.6.x branch; so
the fix will be available from GeoNetwork 2.6.1. If you wish to have it
sooner you could build yourself.

Kind regards
Heikki Doeleman

On Tue, Sep 28, 2010 at 11:43 AM, Riikka <riikka.kivekas@anonymised.com> wrote:

Dear Community

How is the wildcard working in CSW GEtRecords query?

If I make query below, it doesn't find any metadata. If I replace %basi%
with %basins%, I find all the metadata containing word "basins". So does
the
query take account only metadata containing the whole word despite of
wildcard? Or am I doing something wrong?

Best regards,
Riikka Kivekäs

<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; service="CSW"
version="2.0.2">
   <csw:Query typeNames="csw:Record">
       <csw:Constraint version="1.1.0">
           <Filter xmlns="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;&gt;
               <PropertyIsLike wildCard="%" singleChar="_" escapeChar="\">
                   <PropertyName>AnyText</PropertyName>
                   <Literal>%basi%</Literal>
               </PropertyIsLike>
           </Filter>
       </csw:Constraint>
   </csw:Query>
</csw:GetRecords>

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Wildcard-in-GetRecords-query-tp5578657p5578657.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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