PortalQueryParams

require(["esri/portal/PortalQueryParams"], function(PortalQueryParams) { /* code goes here */ });
Class: esri/portal/PortalQueryParams
Inheritance: PortalQueryParams Accessor
Since: ArcGIS API for JavaScript 4.0

The parameters used to perform a query for Items, Groups, and Users within a Portal.

See also:

Constructors

new PortalQueryParams(properties)

Parameter:
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
NameTypeSummaryClass
String

The name of the class.

more details
more detailsAccessor
Extent

Only relevant when querying for PortalItems.

more details
more detailsPortalQueryParams
Number

The maximum number of results to be included in the result set response.

more details
more detailsPortalQueryParams
String

The query string used for the search.

more details
more detailsPortalQueryParams
String

A comma-delimited list of fields to sort.

more details
more detailsPortalQueryParams
String

The order in which to sort the results.

more details
more detailsPortalQueryParams
Number

The index of the first entry in the result set response.

more details
more detailsPortalQueryParams

Property Details

declaredClassStringreadonly inherited

The name of the class. The declared class name is formatted as esri.folder.className.

Only relevant when querying for PortalItems. When specified, restricts the results of the query to the extent defined here.

The spatial reference of the given extent must be WGS84 (wkid 4326) or Web Mercator (wkid 3857).

The maximum number of results to be included in the result set response. The maximum value allowed is 100. The start property combined with the num property can be used to paginate the search results.

Default Value: 10

queryString

The query string used for the search. View the ArcGIS REST API Search Reference for details on constructing a valid query.

See also:

sortFieldString

A comma-delimited list of fields to sort. Field names may vary depending on what is being queried. For example, the fields allowed for a user query are much more limited than if performing a basic search query for portal items. A list of possible field names is listed below. These names correspond to either item (search), group, and/or user queries.

Field nameQuery functionality
titlesearch, group
uploadedsearch
modifiedsearch
usernameuser
createduser, group
typesearch
ownersearch, group
avg-ratingsearch
num-ratingssearch
num-commentssearch
num-viewssearch
See also:

sortOrderString

The order in which to sort the results.

Possible ValueDescription
ascSort the results in ascending order.
descSort the results in descending order.
Default Value: asc

startNumber

The index of the first entry in the result set response. The index is 1-based. The start property, along with the num property can be used to paginate the search results.

Default Value: 1

Method Overview

NameReturn TypeSummaryClass
PortalQueryParams

Creates a deep clone of the instance of PortalQueryParams that calls this method.

more details
more detailsPortalQueryParams

Method Details

Creates a deep clone of the instance of PortalQueryParams that calls this method.

Returns:
TypeDescription
PortalQueryParamsA clone of the instance that called this method.

API Reference search results

NameTypeModule

There were no match results from your search criteria.