Thanks Jose Garcia. That worked.
Regards
Kumaran
From: jose garcia [mailto:josegar74@anonymised.com]
Sent: Monday, July 04, 2011 5:37 PM
To: Kumaran Narayanaswamy
Cc: geonetwork-devel@lists.sourceforge.net;
geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] Queryable Parameters in CSW
Hi Kumaran
You need to add the field electronicMailAddress to the lucene index file
(xml/schemas/iso19139/index-fields.xsl) as I don't see it in default
configuration, and reindex again the metadata.
Regards,
Jose García
On Mon, Jul 4, 2011 at 1:48 PM, Kumaran Narayanaswamy
<kumaran.narayanaswamy@anonymised.com> wrote:
Hello,
I am adding a new Queryable parameter in config-csw.xml as follows
<parameter name="Email" field="electronicMailAddress"
type="SupportedISOQueryables" /> (also tried with AdditionalQueryables)
And in CSW Test Interface I pass the following parameter through Post
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
service="CSW" version="2.0.2" maxRecords="150" startPosition="1"
resultType="results" outputSchema="csw:IsoRecord">
<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:PropertyIsEqualTo>
<ogc:PropertyName>Email</ogc:PropertyName>
<ogc:Literal>kumaran.narayanaswamy@anonymised.com</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
I get 0 records as output whereas I have one metadata record with the above
email address. Am I doing anything wrong to add a new parameter which can be
queried through CSW? Please help. Thanks.
Regards
Kumaran
----------------------------------------------------------------------------
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork