Configure the Number Index Process
You can configure the IDOL Content component to index numeric and alphanumeric fields in several ways by using the configuration parameter IndexNumbers
. Set IndexNumbers
to one of the following values to specify how Content treats numbers:
0 | Numbers are not indexed. |
1 | All numbers are indexed (irrespective of whether they appear on their own or as part of a word). |
2 | Numbers are indexed only if they are part of a word (for example DRE4, Y2K and so on). |
To restrict this to a narrower set of data, use the field processing property IndexNumbersType
. Create an IndexNumbersFields
section and specify which fields qualify. You can limit only terms that are indexed within the field property.
For example:
[English] IndexNumbers=2 [IndexNumbersFields] PropertyFieldCSVs=*/MYFIELD Property=IndexNumbers [IndexNumbers] IndexNumbersType=True IndexNumbers=2
This means that Content indexes the numeric terms in */MYFIELD
that satisfy IndexNumbers=2
(non-numeric and mixed-alphanumeric), whereas all other fields index with IndexNumbers=1
(all numeric terms).
NOTE: If the IndexNumbers
configuration parameter is not specified in a property section, its default is 0
.
You can also limit the indexing of numeric or mixed-alphanumeric terms by the length of the term.
For example:
[IndexNumbers1] IndexNumbersType=True IndexNumbers=1 IndexNumbers1MaxLength=5 IndexNumbers2MaxLength=6
This means that fields with this property have all numbers indexed, assuming the language has IndexNumbers=1
configured, except for pure numeric terms longer than five characters, which are not indexed. Alphanumeric terms longer than six characters are also not indexed.
NOTE: You cannot set the length to more than 255.