Configure feature and table search for maps

To make it easier for users to find features in a map, you can configure specific layers to be searchable. For example, enabling search on a parcel layer helps users find specific parcels. Users select the parcel layer in the search box drop-down menu and enter the parcel ID they want to find, and the map zooms to the parcel and shows a pop-up that you can configure.

You can also configure search on tables in a map to help users find records in some apps.

To configure search on layers and tables in a map, complete the following steps:

  1. Verify that you are signed in to the organization.

    You must sign in as the map owner or an organization administrator to configure the map for feature or table search.

  2. Open the item page of the map.
  3. On the item page, click the Settings tab, and click Web map to scroll to that section.
  4. Turn on the Enable search toggle button.
  5. In the Hint text text box, provide the text that will appear in the search box when the user selects a layer or table to search.

    The same hint appears for all searchable layers and tables.

  6. Do the following to enable and configure feature search on a layer:
    1. Turn on the By layer toggle button.

      The first layer in the map is automatically listed.

    2. If necessary, choose a layer from the drop-down menu.
      Note:

      Hosted feature layers and ArcGIS Server feature and map service layers with the query operation enabled are searchable. If you publish your feature data from ArcGIS Pro, the query operation is enabled by default. For ArcGIS Server feature and map services, you can edit operation settings in ArcGIS Server Manager.

    3. Choose an attribute field in the layer.
      Note:

      For a field to be searchable and, therefore, appear in the drop-down menu, it must contain strings or integers and not use a coded domain. Integer fields only support the Equals condition. For the best search results, choose a field with unique values.

    4. Choose whether the result should contain or be equal to the search terms.
    5. To enable search on additional layers or specify additional search fields for the same layer, click Add layer and repeat steps b – d above.

      You can specify multiple search fields per layer.

  7. Do the following to enable and configure search on a table:
    1. Turn on the By table toggle button.

      The first table in the map is automatically listed.

    2. If necessary, choose a table from the drop-down menu.
    3. Choose an attribute field in the table.
      Note:

      For a field to be searchable and, therefore, appear in the drop-down menu, it must contain strings or integers and not use a coded domain. Integer fields only support the Equals condition. For the best search results, choose a field with unique values.

    4. Choose whether the result should contain or be equal to the search terms.
    5. To enable search on additional tables or specify additional search fields, click Add table and repeat steps b – d above.

      You can specify multiple search fields per table.

  8. Click Save in the Web map section of the Settings tab.

Your map now has search enabled. If you configured search on layers, others can use the search in Map Viewer and other apps that support searching to find features in the layers you configured. If you configured search on tables, they can use the search in apps built with ArcGIS Maps SDKs to find records in the tables you configured. To search, users click the drop-down arrow in the search box and choose a layer or table (as appropriate) from the drop-down menu. The hint text you provided will be displayed in the search box.