Hello,
I am trying to add a UUID search field in Advanced search.
In xml/schemas/iso19139/index-field.xls I have the following:
<xsl:for-each select=“gmd:fileIdentifier/gco:CharacterString”>
</xsl:for-each>
I have added the field in searchform_advanced.xls and in gn_searh.js so it it sent to the server. (e.g. fileIdentifier=urn%3Ax-wmo%3Amd%3Aint.wmo.wis%3A%3ASITH20VTBB)
When I hit Search the server returns everything no matter what I put in this field.
According to the user manual this should be quite straight forward. What am I missing?
Thanks.
Mat
I have also tried with field name uuid and others parameters which are in SearchParameters.java but with no success.
The following requests returns 0 results even though the parameter is in the uuid column of the metadata table:
/geoserver/srv/en/main.search.embedded?similarity=.8&digital=off&paper=off&dynamic=off&download=off&sortBy=relevance&hitsPerPage=10&output=full&uuid=urn:x-wmo:md:int.wmo.wis::SATH40VTBB
/geoserver/srv/en/main.search.embedded?similarity=.8&digital=off&paper=off&dynamic=off&download=off&sortBy=relevance&hitsPerPage=10&output=full&uuid=urn
What am I missing here?
Hi Mathieu,
If you are using fileIdentifier=urn%3Ax-wmo%3Amd%3Aint.wmo.wis%3A%
3ASITH20VTBB as per your example below, this won't work. This element is
being indexed as fileId. Try fileId=urn%3Ax-wmo%3Amd%3Aint.wmo.wis%3A%
3ASITH20VTBB instead.
This works for me (in a recent snapshot of GeoNetwork that is).
Regards,
--
Craig Jones
eMII Infrastructure Programmer
IMOS e-Marine Information Infrastructure Facility (eMII)
Ph: +61 3 6226 8567
On Wed, 2012-05-30 at 10:14 +0200, Mathieu Villemont wrote:
Hello,
I am trying to add a UUID search field in Advanced search.
In xml/schemas/iso19139/index-field.xls I have the following:
<xsl:for-each select="gmd:fileIdentifier/gco:CharacterString">
<Field name="fileId" string="{string(.)}" store="true"
index="true" token="false"/>
</xsl:for-each>
I have added the field in searchform_advanced.xls and in
gn_searh.js so it it sent to the server. (e.g.
fileIdentifier=urn%3Ax-wmo%3Amd%3Aint.wmo.wis%3A%3ASITH20VTBB)
When I hit Search the server returns everything no matter what
I put in this field.
According to the user manual this should be quite straight
forward. What am I missing?
Thanks.
Mat
I have also tried with field name uuid and others parameters which are
in SearchParameters.java but with no success.
The following requests returns 0 results even though the parameter is
in the uuid column of the metadata table:
/geoserver/srv/en/main.search.embedded?similarity=.8&digital=off&paper=off&dynamic=off&download=off&sortBy=relevance&hitsPerPage=10&output=full&uuid=urn:x-wmo:md:int.wmo.wis::SATH40VTBB
/geoserver/srv/en/main.search.embedded?similarity=.8&digital=off&paper=off&dynamic=off&download=off&sortBy=relevance&hitsPerPage=10&output=full&uuid=urn
What am I missing here?
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ 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