To give an example, have two different SQL expressions to to select a Valves layer. In the Text Search tab, I'd like the user to be able to query Valves by an ID number, but also have the option to query all valves on a given street.
This is working great so far, but I'd like to omit one of these from the Spatial Search function. Will this be possible if both queries reference the same REST URL?
I have <spatialsearchlayer>true</spatialsearchlayer> set for the query that I'd like to include in the spatial search tab, and I have <spatialsearchlayer>false</spatialsearchlayer> for the query I'd like to omit from the spatial search tab. However, I am not seeing any impact from this. Any ideas?
You would have to list then as two different layers and each different layer would have to have a different name assigned. They can both use the same map service url though.
This is how I have the two layers set up for different functions. I have the <name> different so I'm not sure why they are still both showing up in the spatial search. I decided to paste the code below in case I'm not following what you're saying.
So you are saying that you have "Valves" and "Valves by Street Name" listed in your Search entities of drop down list? I tested this and can not reproduce this.
Post your whole eSearchWidget.xml. I have tested multiple layers and have had no issue puttinh false for that tag and not having those layers show up in the spatial search dropdown.
When I use the xml you provided I only get Valves, Hydrants, and Service Point in the spatial search drop down.
Hmmm.. I am baffled then. Maybe I should make a new site with App Builder. Maybe something with app builder is getting hung up? Do you think it has anything to do with that or were you testing with App Builder?