Select to view content in your preferred language

Experience Builder Search Functionality

1192
15
06-04-2024 08:57 AM
marksm_macomb
Frequent Contributor

I keep struggling with the Experience Builder search widget behaving wonky. I was able to set it up to search my feature layers and zoom to features, but I still don't understand how the text searching actually works. I do not have "exact match" enabled so the search should work as a "contains", correct? Here are some examples of that not working. 

Say I want to search my developments for "The Corners at Cherry Glen" (an existing development).

If I start searching "Corners", my result is in the suggested list as intended:

marksm_macomb_0-1717515403231.png

If I start searching "The", I don't get my intended result returned, or anything beginning with "The":

marksm_macomb_1-1717515452102.png

If I start searching "The Corners" - this is BEFORE I hit enter, nothing comes up:

marksm_macomb_2-1717515948906.png

AFTER I hit enter on "The Corners" even though it brought up no results prior to hitting enter, suddenly it shows up as suggested:

marksm_macomb_3-1717516033504.png

 

This makes it very confusing for the end user. I'm not sure if this is intended behavior, if it's a bug, or if there's some little setting I'm missing. I do have "Auto select the first result" enabled in the search result settings.

15 Replies
JenniferEyre
New Contributor

You were able to set up your Experience Builder search function to search your feature layers - can you tell me how you achieved it? I'm struggling with that at the moment.

0 Kudos
Laura
by MVP Regular Contributor
MVP Regular Contributor

https://doc.arcgis.com/en/experience-builder/11.1/configure-widgets/search-widget.htm

New search source - layer source - select layer & configure

tasubasu
Occasional Contributor

I have come across a similar issue. It appears the search widget searches well if you copy and paste a whole address, but... if you type in an address it slows right down. In developer tools it looks like it does a new search for each string you enter using "%LIKE%" to look for that text, and it starts a new query for each character you add. So it's not using begins/starts with. So it's slow to load results unless you copy and paste a full string. Can this be improved through configuration? Or is it strictly the Search widget in-built settings?

tasubasu_0-1728266013452.pngtasubasu_1-1728266067013.png

 



0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @tasubasu ,

Which version of Experience Builder are you using? For ArcGIS Online, using "begin with" to query suggestions was introduced in November 2023. For ArcGIS Enterprise, it's available from version 11.3 onward.

and it starts a new query for each character you add

Currently, it is by design that new requests are sent to query suggestions whenever the search input changes. We're considering modifying this behavior by not sending requests if the user has disabled search suggestions. We'd like to know if this potential change would address your concerns.

Regards,

Shengdi

tasubasu
Occasional Contributor

Hi Shengdi,
Thanks for your reply. We are using ArcGIS Enterprise 11.1.

Good question, I think the option to disable search suggestions would be useful, but with the introduction of begins with in later versions I think we wouldn't need it ourselves. Thank you.

0 Kudos
TimWestern
Frequent Contributor

I have seen similar slowness in EXB with the Search Widget (not to be confused with the map search, which at times seems to feel like its acting differently)

I recently had one that I reviewed all the fields it was querying, and realized that sometimes the 'auto' search while type may be making the searches take longer, specially if you have layers being queried that are less likely to be normal selections. For me I updated which ones were searched vs what was displayed, and it began to act much much faster.  It may depend on how much you are querying though.

0 Kudos