it.geosolutions.geonetwork.util
Class GNSearchRequest
java.lang.Object
it.geosolutions.geonetwork.util.GNSearchRequest
public class GNSearchRequest
- extends Object
http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search
Search configuration parameters (all values are optional)
- remote: Search in local catalog or in a remote catalog. Values: off (default), on
- extended: Values: on, off (default)
- timeout: Timeout for request in seconds (default: 20)
- hitsPerPage: Results per page (default: 10)
- similarity: Lucene accuracy for searches (default 0.8)
- sortBy: Sorting criteria. Values: relevance (default), rating, popularity, changeDate, title
Search parameters (all values are optional):
- eastBL, southBL, northBL, westBL:
Bounding box to restrict the search
- relation: Bounding box criteria.
Values: equal, overlaps (default), encloses, fullyOutsideOf,
intersection, crosses, touches, within
- any: Text to search in a free text search
- title: Metadata title
- abstract: Metadata abstract
- themeKey: Metadata keywords. To search for several use a value like “Global” or “watersheds”
- template: Indicates if search for templates or not. Values: n (default), y
- dynamic: Map type. Values: off (default), on
- download: Map type. Values: off (default), on
- digital: Map type. Values: off (default), on
- paper: Map type. Values: off (default), on
- group: Filter metadata by group, if missing search in all groups
- attrset:
- dateFrom: Filter metadata created after specified date
- dateTo: Filter metadata created before specified date
- category: Metadata category. If not specified, search all categories
- Author:
- ETj (etj at geo-solutions.it)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GNSearchRequest
public GNSearchRequest()
addConfig
public void addConfig(GNSearchRequest.Config config,
String value)
addParam
public void addParam(GNSearchRequest.Param param,
String value)
addParam
public void addParam(String param,
String value)
- Add a non-standard param to the request.
Use this method only if you customized GeoNetwork adding new search fields.
toXml
public String toXml()
toElement
public Element toElement()
Copyright © 2011-2012 GeoSolutions. All Rights Reserved.