First things first, you are correct, spelling tables only apply to street name. We will work to apply these to more fields in SP3.
Unfortunately, if you would like to do this to house number there are a few changes that will need to be made.
First go here:
<mapping_schema name="SingleAddress" geom_type="point">
Under this mapping_schema look for
<field name="StreetName" grammar_ref="StName">
You will find the following section:
<scoring_method ref="calculate_score">
<init_properties>
<prop name="CharacterTable">scoring</prop>
</init_properties>
<parameter>
<input_value />
</parameter>
<parameter>
<field_value ref="StreetName" />
</parameter>
</scoring_method>
This is how you apply spelling to other components of the mapping_schema. Something like this:
<field name="House" grammar_ref="House">
<desc>House number</desc>
<preferred_name>HN</preferred_name>
<preferred_name>ADDRESS</preferred_name>
<scoring_method ref="calculate_score">
<init_properties>
<prop name="CharacterTable">scoring</prop>
</init_properties>
<parameter>
<input_value />
</parameter>
<parameter>
<field_value ref="House" />
</parameter>
</scoring_method>
</field>
As for House Number though, it is indexed for the Single House Style so in addition to the changes above, you will need to change the reference in the reference_data_style section as well.
This is the start of that section. Search for "Single House (Address Points)":
<ref_data_styles>
<!--Reference data style for Single House (Address Points)-->
<ref_data_style>
<name>Single House</name>
<desc>US Single House Addresses</desc>
<table_roles>
<table_role name="Primary">
<display_name>Primary Table</display_name>
<desc>Address feature class</desc>
<field_roles>
<field_role name="Primary.Shape" is_geometry="true">
<display_name>Geometry</display_name>
<preferred_name>Shape</preferred_name>
Now you will need to change the mapping schema reference from SingleAddressSearch to SingleAddressPolygonCentroid.
<data_source type="indexed">
<mapping_schema ref="SingleAddressSearch" />
to
<data_source type="indexed">
<mapping_schema ref="SingleAddressPolygonCentroid" />
This should do it but I may have forgot something. Let me know how it works.
Brad