locator suggestions, is there a way to omit a field from suggestions?

768
1
08-30-2017 01:19 PM
BradChranko1
New Contributor

With custom gazetteer locator (10.5) which is part of a composite locator published as a web service, I'm trying to NOT return a field from the auto suggestions.  The matching address return is: address, city, and zip however city and zip I would like not to be part of the search and only limit it to the street address field.  So now, when I enter something like Baltimore, I am seeing returns that have Baltimore as part the city name instead of just addresses on Baltimore Street.  Or for example, if I enter 601, it returns records that have 60134 zipcodes.  The ideal return is if I enter just 601, it would only return 601 Bank Street, Baltimore City, 20202

I've attempted to modify the General.lot.xml file to comment out the city field in the index > dictionary ref but it seems to render the locator inoperable (see code below): 

<index>
<dictionary ref="PlaceName" search="true" type="word" separator_list=",. '@|/-&quot;"/>
<dictionary ref="FullPlaceName" search="true" spatial_index="true" cell_per_x="512" cell_per_y="256"/>
<dictionary ref="Category" search="true" spatial_index="true" cell_per_x="3600" cell_per_y="1800"/>
<dictionary ref="Type" search="true" spatial_index="true" cell_per_x="3600" cell_per_y="1800"/>
<dictionary ref="Tags" search="true" spatial_index="true" cell_per_x="3600" cell_per_y="1800"/>
<dictionary ref="Rank"/>
<!-- <dictionary ref="City" search="true"/> -->

I've tried a bunch of other stuff too like set the search to "false", but still now luck.   Any guidance would be greatly appreciated.

Thanks,  Brad.

Tags (2)
0 Kudos
1 Reply
ShanaBritt
Esri Regular Contributor

Based on your post I don't have all of the information about the other locators that are participating in the composite locator with the Gazetteer locator to give more detailed response to your question about the General.lot.xml file. However, I would suggest that when you build the address locator(s) based on styles not the Gazetteer, build the locator without mapping city and zip. This will allow you to enter an address w/o city or zip code, but you will need to follow the steps in the following article to modify the locator properties to allow searching for addresses without a zone like city or zip. Bug: Dual Ranges address locators created with ArcGIS for Desktop 10.1 and higher do not return matc... 

The suggestions functionality does not index the house number, only the street name, and is not correlated to the house number. More discussion about suggestions can be found at this thread https://community.esri.com/thread/164282 

-Shana

0 Kudos