Configure web map for feature search

Discussion created by tchapin on Feb 13, 2015
Latest reply on Dec 20, 2017 by jlhansen

If your web map configured for feature layer search using the search bar returns no results, even though the query works fine in a manual REST query, here's why:


New at 10.3 in the ArcGIS REST API:

- query now supports pagination in a query layer.

This allows you to page through query results instead of getting all the service limit results at once.  New query parameters resultRecordCount allows you to ask for how many results you want at a time and resultOffset allows you to ask for a new batch of results .  These were introduced at 10.3 because SQL Server (and other RDBMS too) introduced pagination at SQL Server 2012, in which select query results can be obtained in batches using "fetch-offset" T-SQL statements.  If you try to query a layer with data from a RDBMS that does not support pagination (SQL Server 2008 does not), you will get an error that pagination is not supported.  If you are writing your own custom REST client you can find out if a layer supports pagination before you decide to use these parameters.  Go to the layer's REST page and in the "Advanced Query Capabilities" is a property called "Supports Pagination".  In the December update for ArcGIS Online, the "feature search" was updated to use pagination in its query (confirmed with Fiddler) with a default resultRecordCount = 5.  Therefore, if your data layer does not support pagination the search won't work.  Of course, the documentation to configure feature search in a web map ( does not mention pagination or the resultRecordCount.


Also, the feature search annoyingly supports only text fields.