Select to view content in your preferred language

Cannot search multiple fields for hosted feature layer in web map

751
7
Jump to solution
02-01-2024 07:29 AM
Bianca
by
Occasional Contributor

In the application settings for a web map, I have enabled search by layer. My map only has two layers. I can add each layer to search by a particular field. However, when I try to add a single layer twice so that users can search by two different fields for a given layer, it says item has been successfully updated, but when refreshed, it only saves the search for one field. So I can't seem to add the same layer twice to search for two different fields.

0 Kudos
2 Solutions

Accepted Solutions
EmilyGeo
Esri Contributor

Hi @Bianca

We are aware of this issue and are working on providing a fix with the next update of ArcGIS Online. I apologize for the inconvenience.

In the meantime, I can provide you with some suggestions for possible workarounds. One option is to try to set up the search by layers again. Although it may not always work as expected, sometimes it does save more than one search. The results tend to vary, but it could be worth a try. 

Another workaround you can try is to add more searches than you actually need. This might help in getting to a point where the first two searches that you require appear. For example, you can search by layer for 4, 6, or 8 attributes. 

I understand that these workarounds are not ideal, but please bear with us until the fix is released.

Thank you for your patience,

Emily

 

View solution in original post

Bianca
by
Occasional Contributor

Thanks Emily. I did try removing and setting up the search layers several times, but that did not work. However, I was able to add multiple searches for different fields, which saved. Then I removed the others and re-saved the layer just with the two desired searches and it worked.

View solution in original post

0 Kudos
7 Replies
EmilyGeo
Esri Contributor

Hi @Bianca

We are aware of this issue and are working on providing a fix with the next update of ArcGIS Online. I apologize for the inconvenience.

In the meantime, I can provide you with some suggestions for possible workarounds. One option is to try to set up the search by layers again. Although it may not always work as expected, sometimes it does save more than one search. The results tend to vary, but it could be worth a try. 

Another workaround you can try is to add more searches than you actually need. This might help in getting to a point where the first two searches that you require appear. For example, you can search by layer for 4, 6, or 8 attributes. 

I understand that these workarounds are not ideal, but please bear with us until the fix is released.

Thank you for your patience,

Emily

 

Bianca
by
Occasional Contributor

Thanks Emily. I did try removing and setting up the search layers several times, but that did not work. However, I was able to add multiple searches for different fields, which saved. Then I removed the others and re-saved the layer just with the two desired searches and it worked.

0 Kudos
a_bakiera
Occasional Contributor

Hi @EmilyGeo . I have a related issue. When I go to set up the search layers, there is one field that will not show up in the dropdown menu. Is this related or a separate known bug?

 

Thanks!

0 Kudos
EmilyGeo
Esri Contributor

Hi @a_bakiera

Only searchable fields appear in the drop down. There are some criteria that must be met in order for a field to be searchable, for instance, it must contain strings or integers and not use a coded domain. You can check out the ArcGIS Online Help site for more info on how to configure search

Hope that helps! 

MDB_GIS
Frequent Contributor

Is this still an issue? I am having the same problem. Layer is configured in the search setting but no results are showing. 

0 Kudos
EmilyGeo
Esri Contributor

Hi @MDB_GIS

The original question on this thread was in regards to configuring the search by layer using more than 1 field. Based on your message, it sounds like you were able to configure the search properly. Can you provide more info to describe the problem you are having?

0 Kudos
MDB_GIS
Frequent Contributor

@EmilyGeo 

I have resolved my issue. It was apparently a weird bug. Despite having the search set up to utilize multiple attributes, certain searches would not work. For instance, I had configured search to look for an address in a field containing address data. Ever record had an address, but whenever I searched, nothing would show up. I ended up resolving the problem by deleting and re-indexing the fields on that feature class. 

0 Kudos