[GeoNetwork-devel] CSW

Hi guys.

I've downloaded and compiled geonetwork from the CVS and I've seen a mistake with the CSW. I've added 3 metadata in my database that can be retrieved using the Z39.50 protocol, but when I send this CSW query:

<GetRecords service="http://www.opengis.net/cat/csw&quot; version="2.0.1" xmlns="http://www.opengis.net/cat/csw&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot; startPosition='1' maxRecords='10' outputSchema="csw:IsoRecord" resultType="results">
    <Query >
        <ElementSetName>full</ElementSetName>
        <Constraint version='1.1.0'>
            <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
                <ogc:Or>
                    <ogc:PropertyIsLike wildCard="*" singleChar="?" escape="\">
                        <ogc:PropertyName>Title</ogc:PropertyName>
                        <ogc:Literal>*a*</ogc:Literal>
                    </ogc:PropertyIsLike>
                    <ogc:PropertyIsLike wildCard="*" singleChar="?" escape="\">
                        <ogc:PropertyName>Abstract</ogc:PropertyName>
                        <ogc:Literal>*a*</ogc:Literal>
                    </ogc:PropertyIsLike>
                </ogc:Or>
            </ogc:Filter>
        </Constraint>
    </Query>
</GetRecords>

I receive this answer:

<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw&quot;&gt;
  <csw:SearchStatus status="complete" />
  <csw:SearchResults numberOfRecordsMatched="3" numberOfRecordsReturned="3" elementSet="full" />
</csw:GetRecordsResponse>

The numberOfRecordsMatched param is Ok, but the retrieved medatada aren't in the XML tree. It is a problem of the CVS version?

Regards.

--
Jorge Piera Llodra
Equipo de desarrollo gvSIG
Conselleria de Infraestructuras y Transporte
Generalitat Valenciana
Valencia - Spain
http://www.gvsig.gva.es

Hi Jorge,

I think I have finally found the problem of this behaviour. If you get
<csw:SearchResults numberOfRecordsMatched="3"
                      numberOfRecordsReturned="3" elementSet="full" />

with an empty result set you are probably quering 19115 metadata
not 19139 ones. In this case you should see an error log like this one:

SearchController : Metadata not found or invalid schema : <id>

Cheers,
Andrea

Hi guys.

I've downloaded and compiled geonetwork from the CVS and I've seen a
mistake with the CSW. I've added 3 metadata in my database that can
be retrieved using the Z39.50 protocol, but when I send this CSW query:

<GetRecords service="http://www.opengis.net/cat/csw&quot; version="2.0.1"
xmlns="http://www.opengis.net/cat/csw&quot; xmlns:ogc="http://
www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml&quot;
startPosition='1' maxRecords='10' outputSchema="csw:IsoRecord"
resultType="results">
    <Query >
        <ElementSetName>full</ElementSetName>
        <Constraint version='1.1.0'>
            <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
                <ogc:Or>
                    <ogc:PropertyIsLike wildCard="*" singleChar="?"
escape="\">
                        <ogc:PropertyName>Title</ogc:PropertyName>
                        <ogc:Literal>*a*</ogc:Literal>
                    </ogc:PropertyIsLike>
                    <ogc:PropertyIsLike wildCard="*" singleChar="?"
escape="\">
                        <ogc:PropertyName>Abstract</ogc:PropertyName>
                        <ogc:Literal>*a*</ogc:Literal>
                    </ogc:PropertyIsLike>
                </ogc:Or>
            </ogc:Filter>
        </Constraint>
    </Query>
</GetRecords>

I receive this answer:

<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw&quot;&gt;
  <csw:SearchStatus status="complete" />
  <csw:SearchResults numberOfRecordsMatched="3"
numberOfRecordsReturned="3" elementSet="full" />
</csw:GetRecordsResponse>

The numberOfRecordsMatched param is Ok, but the retrieved medatada
aren't in the XML tree. It is a problem of the CVS version?

Regards.