Select to view content in your preferred language

Use first search to set filter for 2nd search?

172
2
Jump to solution
07-31-2025 03:26 PM
KeithWestberg
Emerging Contributor

I feel im posting a question every day, and all because extent performance is horrific.  So unless I find a that magic extent sauce, i need to determine if there is way to hack my way towards a narrowing search experience.

Say we have a COUNTY layer (100 recs) and a HOMES layer (400k recs), which relates to county layer by county name.

Usecase goes as follows.  

1) User type's ORAN, and search result returns 

2) 
ORANGE COUNTY
ORANGE JUICE
ORANGEVILLE

3) User selects ORANGE COUNTY and map centers them on county.

4) User then types "123 Elm"

I need to determine, without using extent, how to keep the selected county relevant for this next search.

 

All advice is welcomed.  

K

 

 

 

 

Layer_A(100 recs) which is used as a picklist, having a relationship attribute with Layer_B(400k recs).  Imagine we'll call the relationship attribute PARENT which place these .  The usecase goes as follows.  

1) User types "ORAN

0 Kudos
1 Solution

Accepted Solutions
Ke_Xu
by Esri Regular Contributor
Esri Regular Contributor

Hi @KeithWestberg,

This requirement can't be accomplished using the Search widget. However, you can use the Filter widget. Add two Filter widgets. One creates a new Group Filter item to filter both the COUNTY layer and the HOMES layer, using the COUNTY layer's county name as the main field. The other Filter adds the HOMES layer.

 

Thanks,

Ke

View solution in original post

0 Kudos
2 Replies
Ke_Xu
by Esri Regular Contributor
Esri Regular Contributor

Hi @KeithWestberg,

This requirement can't be accomplished using the Search widget. However, you can use the Filter widget. Add two Filter widgets. One creates a new Group Filter item to filter both the COUNTY layer and the HOMES layer, using the COUNTY layer's county name as the main field. The other Filter adds the HOMES layer.

 

Thanks,

Ke

0 Kudos
KeithWestberg
Emerging Contributor

thank you Ke

0 Kudos