Ahh, that solves my problem.
Thanks!
From: Mathieu Coudert [mailto:mathieu.coudert@anonymised.com]
Sent: Friday, 5 August 2011 4:00 PM
To: Vote, Josh (CESRE, Kensington)
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Geonetwork xml.search and keywords
Hi Josh,
Yep, you are right, default value for the max keyword number is 10!
You just have to provide the following parameter to the search service "maxSummaryKeys" and you will be able to display as much as you want!
In order to not specify it for each requests, you might want to modify the default xml.search service config (in config.xml file) to set your own maxSummaryKeys value :
<service name="xml.search">
<class name=".services.main.XmlSearch">
<param name="maxSummaryKeys" value="100" />
<param name="maxHitsInSummary" value="1000" />
</class>
...
</service>
HTH,
Cheers,
Mathieu
On Fri, Aug 5, 2011 at 4:20 AM, <Josh.Vote@anonymised.com> wrote:
Hi,
All this testing has been done under both the trunk and 2.6.3 releases.
I've been playing around with the 'xml.search' request documented at http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search with the intention of scraping the keyword + count list for usage within an external service (think tag cloud or equivalent).
The only problem is that the keyword list seems to be ALWAYS limited to 10 results and I know for a fact there are many more keywords than that in my service. Is there any way to specify the maximum number of keywords to be returned? I can't seem to find anything in the documentation I linked above.
So far I've tried the following with no success...
HTTP GET - http://my.fake.host/geonetwork/srv/en/xml.search
HTTP POST - http://my.fake.host/geonetwork/srv/en/xml.search
<?xml version="1.0" encoding="UTF-8"?>
<request>
<hitsPerPage>100</hitsPerPage>
</request>
Thanks
Josh Vote
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork