Marking of Zones for Full-Text Search
Once you have added a dictionary onto the Bookshelf, you need to index it in order to be able to carry out full-text searches in this dictionary. Click Update Index… in the Dictionaries dialog box to update the index. If you choose not to update the index upon adding the dictionary, the index will be automatically updated when you carry out your first full-text search in the newly added dictionary. User dictionaries are indexed in the same way as system dictionaries.
Note. Index files are stored on the hard disk in the same folder where the dictionary is stored. Make sure that your have write permissions for this folder (for more information on working with indexes, see the Adding User Dictionaries to the Bookshelf section).
To enable ABBYY Lingvo x3 to carry out full-text searches in the body text of the cards, you must enclose the text in special tags. Otherwise, ABBYY Lingvo x3 will only look for headwords.
If the structure of your dictionary entries is relatively simple (i.e. they consist merely of a headword followed by some text), you can automatically add [trn] and [/trn] tags to your cards to be able to carry out full-text searches in the dictionary. To do this, select the Create dictionary ready for indexing option in DSL Compiler. In this case, DSL Compiler will place a [trn] tag at the beginning of each card and a [/trn] tag at the end of each card. The syntax of the DSL language prohibits embedding zones of the same type, so before compiling your dictionary make sure that there are no [trn] tags in the entries. DSL Compiler will report a compilation error for each entry with embedded [trn] tags.
If your dictionary entries are complex and have several zones, you need to use special DSL tags to mark these zones:
- Use the [trn] and [/trn] tags to mark the translations zone. This zone will contain translations of the headword.
- Use the [ex] and [/ex] tags to mark the examples zone. This zone will contain usage examples.
- Use the [com] and [/com] tags to mark the comments zone. This zone will provide additional information about the translations.
- Use the [!trs] and [/!trs] tags to mark text fragments that must not be indexed (i.e. fragments you wish to be excluded from full-text search).
In the case of complex dictionary entries with several zones, clear the Create dictionary ready for indexing option in DSL Compiler.