Customizing Queries to ArcGIS Online
Customers may want to index only their organization's account in ArcGIS Online and not all of ArcGIS Online. To make this possible, they can use the ArcGIS REST API to customize queries to an ArcGIS location.Â
There are two steps in customizing an ArcGIS Online query:
Add ArcGIS Online as a new location
Enter query parameters to refine the query results (e.g. for a specific group or department)
Adding ArcGIS Online in Voyager Server
To add ArcGIS Online in Voyager Server:
Go to Manage > Discovery > Locations
Click New Location
Select Web Services
Choose ArcGIS Online / Portal for ArcGIS from the Type drop-down menu
Click Add next to www.arcgis.com in the Examples section
In the Configuration dialog, select Query under the Content heading
Enter query terms in the Query field (see next section for more information)
Click Save when you are done
When Voyager indexes the new ArcGIS Online location, it will apply the query settings added to the location's configuration.
Adding ArcGIS Online Query Parameters
ArcGIS query parameters are similar to most text search engines. Queries can be term-based (e.g. fire or earthquake) or field-based (e.g. group, owner or spatial reference), and Boolean operators (AND, OR, NOT) are accepted. For detailed information, click the ArcGIS Online Query Syntax link.Â
Field Queries and Grouping
You can filter your searches on groups by using specific fields in your search string. Only public groups or groups to which you have access will be searched. To find the group fields available to you, login to your Portal for ArcGIS Online account.Â
To query a field, use the following syntax:
fieldname:"field_value"Â - the quotes around the field value are required
type:"map service"
group:"MyGroup"
These can be combined with Boolean operators, for example
type:"layer" AND type:"feature service" ANDÂ group:"MyGroup"