TXT Dictionaries Usage
A TXT dictionary is a simple list of search text variants for a Static Text search element. You can access a TXT user dictionary both from the element’s Properties pane and from the code using the SearchTextFromFile function. Each line should contain one search text variant. You can use| (the OR operator) to construct phrases from words. For more information about specifying search text variants, see Static Text Element.
XML Dictionaries Usage
XML dictionaries are useful when you have different sets of data associated with the same entity and need to select a suitable set of data depending on the document’s features. Here are some typical use cases:- You want to search for a keyword on documents in different languages. You can compile lists of possible keywords for each language and put them into a single XML file. Then you need to detect the language of each document and request the appropriate list of keywords when setting up a Static Text element.
- You want to check the values of several elements against lists of allowed values. You can compile lists of allowed values and put them into a single XML file. Then you can request the corresponding list of values from the code of each element.
- Your document set contains documents from different countries and you need to use some country-specific data, such as tax rates, to process the documents. You can put all country-specific data into a single XML file. Then you need to detect the country of origin of each document and request the corresponding data, which can then be used for searching, validating or suggesting values for fields.
