org.fao.geonet.services.main
Class XmlSearch

java.lang.Object
  extended by org.fao.geonet.services.main.XmlSearch
All Implemented Interfaces:
Service

public class XmlSearch
extends Object
implements Service


Constructor Summary
XmlSearch()
           
 
Method Summary
 org.jdom.Element exec(org.jdom.Element params, ServiceContext context)
          Run a search and return results as XML.
 void init(String appPath, ServiceConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSearch

public XmlSearch()
Method Detail

init

public void init(String appPath,
                 ServiceConfig config)
          throws Exception
Specified by:
init in interface Service
Throws:
Exception

exec

public org.jdom.Element exec(org.jdom.Element params,
                             ServiceContext context)
                      throws Exception
Run a search and return results as XML.

Specified by:
exec in interface Service
Parameters:
params - All search parameters defined in LuceneIndexField.
To return only results summary, set summaryOnly parameter to 1. Default is 0 (ie.results and summary).
Throws:
Exception


Copyright © 2003-2013. All Rights Reserved.