Search Box - Autocomplete
I have set 2 fields in a layer to "include in global search". One is house number the other is street name. I would like to have the search work like it does in the viewer linked below. As soon as you start typing a number, it suggests possible matching addresses (house number and street name). Right now I can search by street name and it will suggest possible matches after I type a few characters but when I type in a house address (like 123 Main Street) I get NO search results even though the property exists, I can see it on the map! And BOTH fields (house number and street name) are searchable. Do my 2 fields need to be combined into one field for this to work?
http://www.geoweb.dnv.org/properties/
-
Rebecca
That is what we did at KGIS. In our SDE database we have House number and Street name as 2 fields, for the global search we have a python script that runs every morning that adds the fields together plus adds table info to a feature class. We combine the table info because a join slows down the layer used in the global search.
Jimmy Brink
0 -
I ended up doing what you suggested and it worked perfectly. Now I'd like to get the field name that appears in the search box to show as the display name assigned to the field in manager rather than the actual field name. Any thoughts on that one?
0 -
Rebecca,
Did you get the Autocomplete to work without using Geocortex's instant search option? Via the Global Search bar?
Thanks!
Brian
0 -
I don't think it worked without instant search although I may not be remembering correctly. I do remember having issues and it wasn't until I concatenated the 2 fields and enabled instant search that it worked how I wanted it to (sort of). It still displays the field name in the search box instead of the display name which is very annoying... but not the end of the world.
0
Please sign in to leave a comment.
Comments
4 comments